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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64c
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], 0x104
jae 0x410e6c
cmp dword [edi + 0x10], 0x104
jae 0x410e6c
lea eax, [esp + 0xe]
push eax
lea ecx, [esp + 0x31c]
call fcn.004086a0
xor eax, eax
mov dword [esp + 0x32c], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x324]
mov dword [esp + 0x334], ebx
mov word [esp + 0x324], ax
call fcn.00407b20
cmp dword [esp + 0x32c], 8
lea eax, [esp + 0x318]
cmovae eax, dword [esp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410b42
lea edx, [esp + 0x318]
lea ecx, [esp + 0x330]
call fcn.00410770
lea ecx, [esp + 0x318]
cmp ecx, eax
je 0x410ab0
push 0xffffffffffffffff
push ebx
push eax
call fcn.00407b20
lea ecx, [esp + 0x330]
call fcn.00401fe0
cmp dword [esp + 0x328], ebx
je 0x410b9e
mov edx, esi
lea ecx, [esp + 0x390]
call fcn.00410770
mov eax, dword [esp + 0x3a0]
test eax, eax
je 0x410e3b
cmp dword [esp + 0x328], eax
jb 0x410b0d
lea ecx, [esp + 0x390]
push ecx
push eax
push ecx
lea ecx, [esp + 0x324]
call fcn.004115d0
test eax, eax
je 0x410e3b
push 3
push 1
push esi
lea ecx, [esp + 0x3b4]
call fcn.0041b5b0
push esi
call fcn.00410e90
add esp, 4
test al, al
jne 0x410bc3
lea ecx, [esp + 0x3a8]
xor bl, bl
call fcn.0041b760
jmp 0x410e3d
lea eax, [esp + 0x378]
push eax
lea ecx, [esp + 0x31c]
call fcn.00412a20
mov edx, eax
lea ecx, [esp + 0x330]
call fcn.00410770
lea ecx, [esp + 0x318]
cmp ecx, eax
je 0x410b79
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x330]
call fcn.00401fe0
lea ecx, [esp + 0x378]
call fcn.00401fe0
cmp dword [esp + 0x328], ebx
jne 0x410ac9
lea ecx, [esp + 0x318]
xor bl, bl
call fcn.00401fe0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [esp + 0x34c]
call fcn.0040fbc0
mov ecx, esi
call fcn.00410eb0
push esi
lea ecx, [esp + 0x364]
mov byte [esp + 0x14], al
mov byte [esp + 0x12], 1
call fcn.0040fbc0
mov ecx, edi
call fcn.00410eb0
test al, al
je 0x410c30
lea eax, [esp + 0x378]
mov ecx, esi
push eax
call fcn.00412a20
lea ecx, [esp + 0x360]
cmp ecx, eax
je 0x410c1c
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x378]
call fcn.00401fe0
nop dword [eax + eax]
cmp dword [esp + 0x358], 0
je 0x410e01
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x334]
call fcn.004086a0
xor eax, eax
mov dword [esp + 0x344], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x33c]
mov dword [esp + 0x34c], 0
mov word [esp + 0x33c], ax
call fcn.00407b20
lea eax, [esp + 0x348]
push eax
lea ecx, [esp + 0x364]
call fcn.004124f0
test al, al
je 0x410cbb
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x34c]
push eax
lea ecx, [esp + 0x368]
call fcn.00412840
test al, al
je 0x410e2b
cmp byte [esp + 0x10], 0
je 0x410d1a
cmp dword [esp + 0x344], 8
lea eax, [esp + 0x330]
cmovae eax, dword [esp + 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410cec
shr eax, 4
and al, 1
jne 0x410d47
cmp dword [esp + 0x344], 8
lea eax, [esp + 0x330]
push 0
cmovae eax, dword [esp + 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410d47
test bl, 4
je 0x410d42
and ebx, 0xfffffffb
jmp 0x410d39
lea edx, [esp + 0x330]
lea ecx, [esp + 0x348]
call fcn.00411470
test al, al
jne 0x410d47
test bl, 8
je 0x410d42
and ebx, 0xfffffff7
lea ecx, [esp + 0x18]
call fcn.0040f4c0
mov byte [esp + 0xe], 0
lea eax, [esp + 0x378]
push eax
lea ecx, [esp + 0x3ac]
call fcn.0041b820
lea ecx, [esp + 0x348]
cmp ecx, eax
je 0x410d70
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x378]
call fcn.00401fe0
cmp dword [esp + 0x358], 0
je 0x410dea
cmp byte [esp + 0x3a8], 0
jne 0x410dc1
test bl, 0x10
je 0x410da1
lea ecx, [esp + 0x18]
and ebx, 0xffffffef
call fcn.0040f4c0
push 0x250
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.004ac860
mov eax, dword [esp + 0xd4]
add esp, 0xc
jmp 0x410de1
mov eax, dword [esp + 0x3ac]
lea esi, [esp + 0x3ac]
mov ecx, 0x94
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
shr eax, 4
and al, 1
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x330]
call fcn.00401fe0
cmp byte [esp + 0xe], 0
jne 0x410c30
mov bl, byte [esp + 0xe]
lea ecx, [esp + 0x360]
call fcn.00401fe0
lea ecx, [esp + 0x348]
call fcn.00401fe0
lea ecx, [esp + 0x3a8]
call fcn.0041b760
jmp 0x410e3d
lea ecx, [esp + 0x330]
xor bl, bl
call fcn.00401fe0
jmp 0x410e05
xor bl, bl
lea ecx, [esp + 0x390]
call fcn.00401fe0
lea ecx, [esp + 0x318]
call fcn.00401fe0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x654]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret