Function at 0x404186
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x164
mov dword [ebp - 0xc], 0
mov eax, dword [0x406684]
mov eax, dword [eax + 0x10]
and eax, 0xf
test eax, eax
je 0x4041b3
mov eax, dword [0x406684]
mov eax, dword [eax + 0x18]
cmp byte [eax], 0
jne 0x4041c2
mov dword [0x409130], str.____a_z__a_z0_9_____0_9___0_1____t__a_z__
jmp 0x404270
mov eax, dword [0x406684]
mov dword [esp + 8], 4
mov dword [esp + 4], str.____a_z__a_z0_9_____0_9___0_1____t__a_z__
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_strncmp
test eax, eax
jne 0x4041f5
mov eax, dword [0x406684]
mov eax, dword [eax + 0x18]
mov dword [0x409130], eax
jmp 0x404270
mov eax, dword [0x406684]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msys_1.0.dll_strlen
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msys_1.0.dll_malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x404240
mov dword [esp + 8], str.definition_pattern
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Error:__could_not_allocate__d_bytes_for__s_n
call fcn.00403aec
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.___s_
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_snprintf
mov eax, dword [ebp - 0x18]
mov dword [0x409130], eax
mov dword [ebp - 0xc], 1
mov dword [esp + 8], 3
mov eax, dword [0x409130]
mov dword [esp + 4], eax
mov dword [esp], 0x409180
call sub.msys_regex_1.dll_regcomp
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4042e1
mov dword [esp + 0xc], 0x100
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x409180
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msys_regex_1.dll_regerror
mov eax, dword [0x409130]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.Regex_error__d___s_:__Cannot_compile_reg_expr:_n_t_s_n
call fcn.00403aec
cmp dword [ebp - 0xc], 0
je 0x4042f4
mov eax, dword [0x409130]
mov dword [esp], eax
call sub.msys_1.0.dll_free
mov dword [0x409130], 0
mov dword [esp + 8], 3
mov dword [esp + 4], str._n__n____t___a_z__a_z0_9____:
mov dword [esp], 0x4091a0
call sub.msys_regex_1.dll_regcomp
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40436d
mov dword [esp + 0xc], 0x100
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4091a0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msys_regex_1.dll_regerror
mov dword [esp + 0xc], str._n__n____t___a_z__a_z0_9____:
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.Regex_error__d___s_:__Cannot_compile_reg_expr:_n_t_s_n
call fcn.00403aec
mov eax, dword [0x406684]
add eax, 0x100
mov eax, dword [eax + 0x10]
and eax, 0xf
test eax, eax
je 0x4043cb
mov eax, dword [0x406684]
add eax, 0x100
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x406684]
add eax, 0x100
mov eax, dword [eax + 0x1c]
add eax, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00403c7c
mov dword [ebx], eax
lea eax, [ebp - 0x14]
add dword [eax], 4
lea eax, [ebp - 0x18]
dec dword [eax]
cmp dword [ebp - 0x18], 0
jle 0x4043cb
jmp 0x4043a6
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x10]
and eax, 0xf
test eax, eax
jne 0x404478
mov eax, dword [0x406684]
add eax, 0xc0
mov word [eax + 4], 3
mov eax, dword [0x406684]
add eax, 0xc0
mov word [eax + 6], 3
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x10]
and eax, 0xffffff80
mov dword [edx + 0x10], eax
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x10]
or eax, 1
mov dword [edx + 0x10], eax
mov eax, dword [0x406684]
add eax, 0xc0
mov dword [eax + 0x18], 0x406bae
mov edx, dword [0x406684]
add edx, 0xc0
mov eax, dword [0x406684]
add eax, 0xc0
mov dword [esp + 4], eax
mov dword [esp], 0x406640
mov eax, dword [edx + 0x28]
call eax
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x1c]
add eax, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 1
jne 0x4044e6
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x406bae
mov eax, dword [eax]
mov dword [esp], eax
call sub.msys_1.0.dll_strcmp
test eax, eax
jne 0x4044e6
call fcn.00403e05
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x406684]
add eax, 0xc0
mov eax, dword [eax + 0x1c]
add eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esp], eax
lea eax, [ebp - 0x14]
add dword [eax], 4
call sub.msys_1.0.dll_stat
test eax, eax
je 0x404509
jmp 0x404556
mov eax, dword [ebp - 0x150]
and eax, 0xf000
cmp eax, 0x8000
je 0x404528
call sub.msys_1.0.dll___errno
mov dword [eax], 0x16
jmp 0x404556
lea eax, [ebp - 0x138]
inc dword [eax]
mov eax, dword [ebp - 0x138]
cmp eax, dword [0x409138]
jle 0x404549
mov eax, dword [ebp - 0x138]
mov dword [0x409138], eax
lea eax, [ebp - 0x18]
dec dword [eax]
cmp dword [ebp - 0x18], 0
jle 0x404556
jmp 0x4044e6
cmp dword [ebp - 0x18], 0
jle 0x404574
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.stat_ing__s_for_text_file_n
call fcn.00403b43
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x10]
and eax, 0xf
test eax, eax
je 0x40464d
mov eax, dword [0x406684]
add eax, 0x40
cmp dword [eax + 0x18], 0
je 0x40464d
mov eax, dword [0x406684]
add eax, 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call fcn.0040216f
mov dword [0x409120], eax
cmp dword [0x409120], 0
jne 0x40460c
mov dword [esp], 0x4000
call sub.msys_1.0.dll_malloc
mov dword [0x409128], eax
mov eax, dword [0x409128]
mov dword [0x409124], eax
mov dword [0x409120], eax
mov dword [0x40912c], 0x4000
mov dword [esp + 8], str.____buffer_read_only:_t____vi:_set_ro:_n_n_DO_NOT_EDIT_THIS_FILE___it_is_auto_edited_by_getdefs_n
mov dword [esp + 4], 0x406f5c
mov eax, dword [0x409124]
mov dword [esp], eax
call sub.msys_1.0.dll_sprintf
add dword [0x409124], eax
jmp 0x404641
mov eax, dword [0x409120]
mov dword [esp], eax
call sub.msys_1.0.dll_strlen
add eax, dword [0x409120]
mov dword [0x409128], eax
mov eax, dword [0x409128]
mov dword [0x409124], eax
mov edx, dword [0x409120]
mov eax, dword [0x409124]
sub eax, edx
inc eax
mov dword [0x40912c], eax
mov dword [esp], 0x406f5f
call sub.msys_opts_25.dll_option_strequate
mov eax, dword [0x406684]
add eax, 0x2c0
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40466b
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
jne 0x40467c
mov eax, dword [0x406684]
add eax, 0x2c0
mov dword [eax + 0x18], 0x406f63
mov eax, dword [0x406684]
add eax, 0x300
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40469a
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
jne 0x4046ab
mov eax, dword [0x406684]
add eax, 0x300
mov dword [eax + 0x18], 0x406f6b
mov dword [ebp - 0x18], str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789__
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x4046ce
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
mov byte [eax + 0x409020], 3
lea eax, [ebp - 0x18]
inc dword [eax]
jmp 0x4046b2
mov dword [ebp - 0x18], str.:.______
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x4046f1
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
mov byte [eax + 0x409020], 1
lea eax, [ebp - 0x18]
inc dword [eax]
jmp 0x4046d5
add esp, 0x164
pop ebx
pop ebp
ret