Function at 0x40885c
Capabilities:
Get file attributes

Disassembly:
push 0x26c
mov eax, 0x448d85
call fcn.0044663a
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
mov eax, dword [0x4596a4]
mov edi, 0x4596a4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4596a4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
call fcn.0040c3ef
test eax, eax
pop ecx
mov dword [esi + 0x20c], eax
jne 0x4088f9
xor esi, esi
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402012
mov eax, esi
call fcn.004466bd
ret 8
mov eax, dword [0x4596a4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x264]
mov bx, 0x5c
call fcn.00408b0a
cmp eax, 0xffffffff
je 0x40895a
lea edx, [eax + 1]
lea eax, [ebp - 0x264]
push eax
mov ebx, edi
mov eax, ebx
call fcn.00408b39
lea edi, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00401bdb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.00402012
jmp 0x40896d
mov eax, edi
lea edi, [ebp - 0x268]
call fcn.00401bdb
mov ebx, dword [ebp - 0x264]
call fcn.00408b6f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x408ac5
mov eax, ebx
lea edi, [ebp - 0x26c]
call fcn.00401bdb
lea edi, [esi + 4]
lea esi, [ebp - 0x26c]
mov dword [ebp - 0x278], edi
call fcn.00401cf9
push eax
push edi
call fcn.0042dab3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
push 0
push 0x408493
lea eax, [ebp - 0x260]
push eax
call fcn.00401cf9
push eax
call fcn.00408552
add esp, 0x10
call fcn.00408b57
test eax, eax
je 0x408aaf
mov esi, dword [0x4598e0]
cmp esi, dword [0x4598e4]
jbe 0x4089fa
call fcn.0042d0a2
mov edi, dword [ebp - 0x270]
mov ebx, 0x4598dc
mov eax, dword [0x4598e4]
cmp dword [0x4598e0], eax
mov dword [ebp - 0x264], eax
jbe 0x408a1d
call fcn.0042d0a2
test ebx, ebx
je 0x408a29
cmp ebx, 0x4598dc
je 0x408a2e
call fcn.0042d0a2
cmp esi, dword [ebp - 0x264]
je 0x408add
test ebx, ebx
jne 0x408a43
call fcn.0042d0a2
cmp esi, dword [ebx + 8]
jb 0x408a4d
call fcn.0042d0a2
push dword [ebp - 0x278]
call fcn.0042c8cb
mov edi, eax
pop ecx
add edi, edi
call fcn.00401cf9
lea eax, [eax + edi + 2]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00401c1c
cmp esi, dword [ebx + 8]
jb 0x408a7d
call fcn.0042d0a2
mov eax, dword [ebp - 0x270]
push dword [ebp - 0x268]
mov ecx, dword [esi]
mov eax, dword [eax + 0x20c]
call fcn.0040c502
mov edi, eax
test edi, edi
pop ecx
jne 0x408ae1
cmp esi, dword [ebx + 8]
jb 0x408aa7
call fcn.0042d0a2
add esi, 4
jmp 0x408a05
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00402012
or esi, 0xffffffff
jmp 0x4088c8
mov esi, dword [esi + 0x20c]
push dword [ebp - 0x268]
mov ecx, dword [ebx]
mov eax, esi
call fcn.0040c502
pop ecx
mov edi, eax
test edi, edi
je 0x408af4
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00402012
jmp 0x4088c6
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00402012
xor esi, esi
inc esi
jmp 0x4088c8