Function at 0x414ea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x350], edi
cmp dword [esi + 0x10], 0x104
jae 0x4151fb
cmp dword [edi + 0x10], 0x104
jae 0x4151fb
push edi
lea ecx, [ebp - 0x20]
call fcn.00407d00
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414f99
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00414c30
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x414f21
push 0xffffffffffffffff
push ebx
push eax
call fcn.004083b0
lea ecx, [ebp - 0x38]
call fcn.00407c40
cmp dword [ebp - 0x10], ebx
je 0x414fd9
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.00414c30
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4151d3
cmp dword [ebp - 0x10], eax
jb 0x414f6b
lea ecx, [ebp - 0x98]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00415b50
test eax, eax
je 0x4151d3
push 3
push ecx
push esi
lea ecx, [ebp - 0x344]
call fcn.00420360
push esi
call fcn.00415210
add esp, 4
test al, al
jne 0x414ff6
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.004204e0
jmp 0x4151d5
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x20]
call fcn.00417700
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00414c30
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x414fc0
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
lea ecx, [ebp - 0x38]
call fcn.00407c40
lea ecx, [ebp - 0x80]
call fcn.00407c40
cmp dword [ebp - 0x10], ebx
jne 0x414f32
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.00407c40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x50]
call fcn.00407d00
mov ecx, esi
call fcn.00415230
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x34c], al
mov byte [ebp - 0x345], 1
call fcn.00407d00
mov ecx, edi
call fcn.00415230
test al, al
je 0x415050
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00417700
lea ecx, [ebp - 0x68]
cmp ecx, eax
je 0x415043
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
lea ecx, [ebp - 0x80]
call fcn.00407c40
nop dword [eax + eax]
cmp dword [ebp - 0x40], 0
je 0x4151a4
push edi
lea ecx, [ebp - 0x38]
call fcn.00407d00
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.004171a0
test al, al
je 0x41508b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.004174b0
test al, al
je 0x4151c7
cmp byte [ebp - 0x34c], 0
je 0x4150d4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4150b2
shr eax, 4
and al, 1
jne 0x4150fd
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4150fd
test bl, 4
je 0x4150f6
and ebx, 0xfffffffb
jmp 0x4150eb
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.004159f0
test al, al
jne 0x4150fd
test bl, 8
je 0x4150f6
and ebx, 0xfffffff7
lea ecx, [ebp - 0x404]
call fcn.0041da30
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x344]
call fcn.00420530
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x41511d
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
lea ecx, [ebp - 0x80]
call fcn.00407c40
cmp dword [ebp - 0x40], 0
je 0x41518f
cmp byte [ebp - 0x344], 0
jne 0x415165
test bl, 0x10
je 0x415147
lea ecx, [ebp - 0x404]
and ebx, 0xffffffef
call fcn.0041da30
push 0x250
lea eax, [ebp - 0x654]
push 0
push eax
call fcn.00518c00
mov eax, dword [ebp - 0x654]
add esp, 0xc
jmp 0x415184
mov eax, dword [ebp - 0x340]
lea esi, [ebp - 0x340]
mov ecx, 0x94
lea edi, [ebp - 0x654]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x350]
shr eax, 4
and al, 1
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x38]
call fcn.00407c40
cmp byte [ebp - 0x345], 0
jne 0x415050
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x68]
call fcn.00407c40
lea ecx, [ebp - 0x50]
call fcn.00407c40
lea ecx, [ebp - 0x344]
call fcn.004204e0
jmp 0x4151d5
lea ecx, [ebp - 0x38]
xor bl, bl
call fcn.00407c40
jmp 0x4151aa
xor bl, bl
lea ecx, [ebp - 0x98]
call fcn.00407c40
lea ecx, [ebp - 0x20]
call fcn.00407c40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret