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

Disassembly:
push 0xffffffffffffffff
push 0x44f122
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x46b600]
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x234], eax
push edi
xor esi, esi
xor eax, eax
mov edi, 0xa
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0x24c]
mov dl, byte [ebx]
test dl, dl
mov dword [esp + 0x244], ebp
lea ecx, [esp + 0x134]
je 0x40e73c
lea ecx, [ecx]
cmp dl, 0x5c
jne 0x40e72e
test eax, eax
mov byte [ecx], 0
mov ebp, esi
jne 0x40e6c4
lea eax, [edi + edi*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.0042efc5
add esp, 4
test eax, eax
je 0x40e75e
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x24]
lea ecx, [edx + edx*2]
mov dword [esp + 0x1c], eax
lea ecx, [eax + ecx*4 - 8]
lea eax, [edx - 1]
test eax, eax
jl 0x40e6c0
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0xc
dec edx
jne 0x40e6b0
mov dword [esp + 0x20], eax
jmp 0x40e6c4
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x134]
push edx
lea ecx, [eax + 8]
mov byte [esp + 0x248], 1
call fcn.0040e410
mov dword [esp + 0x20], edi
mov dword [esi + 4], ebp
mov dword [esi], 0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc edx
test eax, eax
mov byte [esp + 0x244], 0
mov dword [esp + 0x18], edx
je 0x40e712
mov dword [eax], esi
jmp 0x40e716
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x134]
xor ebp, ebp
jmp 0x40e732
mov byte [ecx], dl
inc ecx
inc ebx
mov dl, byte [ebx]
test dl, dl
jne 0x40e660
push ebp
push esi
lea eax, [esp + 0x13c]
mov byte [ecx], 0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e570
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x40e768
mov dword [ecx], eax
jmp 0x40e76c
push 0x8007000e
call fcn.00401030
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 2
jae 0x40e787
lea ecx, [esp + 0x10]
call fcn.0040e2c0
xor al, al
jmp 0x40e82b
mov al, byte [esp + 0x250]
test al, al
jne 0x40e79b
lea ecx, [esp + 0x10]
call fcn.0040e3c0
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov byte [esp + 0x30], 0
je 0x40e80f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, edi
mov eax, ebp
mov eax, dword [eax + 8]
mov ebp, dword [ebp]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e7c0
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e7d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e7f0
mov cx, word [0x452930]
push 0
lea edx, [esp + 0x34]
push edx
mov word [edi], cx
call ebx
test ebp, ebp
jne 0x40e7b0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [esp + 0x10]
setne bl
call fcn.0040e2c0
mov al, bl
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
pop ebx
call fcn.0042f2ae
add esp, 0x238
ret