Function at 0x4387dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4387e5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406888
mov eax, dword [ebp - 8]
call fcn.00406888
xor eax, eax
push ebp
push 0x438db6
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov ecx, 0x438dd0
pop eax
call fcn.00409224
push 0
push 0x64
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c0]
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
jne 0x438895
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
jne 0x438895
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4389aa
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
je 0x4388c0
push 0
push 0x64
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c8]
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2d0]
mov edx, dword [ebp - 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
jne 0x4388fa
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
je 0x438935
push 0
push 0xc8
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2d8]
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2e0]
mov edx, dword [ebp - 0x50]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x438960
push 0
push 0x64
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2e8]
mov edx, dword [ebp - 0x54]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x43898e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x43898e
push 0
push 0x64
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2f0]
mov edx, dword [ebp - 0x58]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2f8]
mov edx, dword [ebp - 0x5c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 0x10], 0
je 0x4389bc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
je 0x4389d4
test bl, bl
je 0x4389c5
xor eax, eax
mov dword [ebp + 0x14], eax
mov ecx, ebx
xor cl, 1
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov edx, dword [0x408274]
call fcn.004060b4
mov eax, dword [ebp + 0x1c]
mov edx, dword [0x408274]
call fcn.004060b4
mov eax, dword [ebp + 0x18]
mov edx, dword [0x408274]
call fcn.004060b4
lea eax, [ebp - 0x10]
mov edx, dword [0x408274]
call fcn.004060b4
lea eax, [ebp - 0x14]
mov edx, dword [0x408274]
call fcn.004060b4
lea eax, [ebp - 0x18]
mov edx, dword [0x408274]
call fcn.004060b4
cmp dword [ebp - 8], 0
je 0x438d6b
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x438d6b
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x28]
call fcn.0042b5d4
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x28]
call fcn.00404bb4
mov eax, dword [ebp - 0x28]
call fcn.00404fdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x438d5f
cmp dword [ebp - 0x30], 0
setne byte [ebp - 0x21]
cmp byte [ebp - 0x21], 0
je 0x438cdb
mov eax, dword [ebp - 0x10]
call fcn.00405db4
mov esi, eax
test esi, esi
jl 0x438ad4
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x30]
call fcn.004099e0
test al, al
je 0x438ad0
mov byte [ebp - 0x21], 0
jmp 0x438ad4
inc ebx
dec esi
jne 0x438ab8
cmp byte [ebp - 0x21], 0
je 0x438d5f
mov eax, dword [ebp - 0x10]
call fcn.00405dac
inc eax
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.00405db4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x30]
call fcn.00404b70
lea eax, [ebp - 0x14]
mov edx, dword [0x408274]
call fcn.004060b4
lea eax, [ebp - 0x18]
mov edx, dword [0x408274]
call fcn.004060b4
xor eax, eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
sub esi, ebx
jl 0x438bf4
inc esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x18]
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x28]
call fcn.0042b5d4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x28]
call fcn.00404bb4
mov eax, dword [ebp - 0x10]
call fcn.00405db4
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x30]
call fcn.004099e0
test al, al
je 0x438bec
mov edi, dword [ebp - 0x20]
inc edi
push edi
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
push edi
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x28]
call fcn.00404b70
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x2c]
call fcn.00404b70
inc dword [ebp - 0x20]
inc ebx
dec esi
jne 0x438b4c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
lea eax, [ebp - 0x28]
call fcn.0042b774
cmp dword [ebp - 0x28], 0
je 0x438d5f
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405db4
push eax
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
call fcn.00404e28
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x14]
pop ecx
call fcn.00417570
test al, al
je 0x438d5f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00405dac
mov ebx, eax
lea esi, [ebx + 1]
push esi
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
push esi
mov eax, dword [ebp + 0x1c]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
push esi
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
call fcn.00404e28
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x30]
call fcn.00404b70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x30]
call fcn.00404b70
jmp 0x438d5f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00405dac
mov ebx, eax
lea esi, [ebx + 1]
push esi
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
push esi
mov eax, dword [ebp + 0x1c]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
push esi
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x408274]
call fcn.00405f88
add esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x28]
call fcn.00404b70
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x2c]
call fcn.00404b70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0x34]
call fcn.00404b70
inc dword [ebp - 0x1c]
dec dword [ebp - 0x38]
jne 0x438a4e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438dbd
lea eax, [ebp - 0x68]
mov edx, 0xc
call fcn.00404b40
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404b40
lea eax, [ebp - 0x18]
mov edx, dword [0x408274]
mov ecx, 3
call fcn.004056ac
lea eax, [ebp - 8]
call fcn.00406814
lea eax, [ebp - 4]
call fcn.00406814
ret