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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x340], ebx
cmp dword [esi + 0x10], 0x104
jae 0x41a01a
cmp dword [edi + 0x10], 0x104
jae 0x41a01a
xor eax, eax
mov dword [ebp - 0x20], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
call fcn.00407970
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419d6e
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.00419a10
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x419d0a
push 0xffffffffffffffff
push ebx
push eax
call fcn.00407970
cmp dword [ebp - 8], 8
jb 0x419d1b
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
cmp dword [ebp - 0x24], ebx
je 0x419dd0
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.00419a10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x419fcf
cmp dword [ebp - 0x24], eax
jb 0x419d54
lea ecx, [ebp - 0x64]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0041bb10
test eax, eax
je 0x419fcf
push 3
push 1
push esi
lea ecx, [ebp - 0x338]
call fcn.00434530
cmp dword [esi + 0x14], 8
jb 0x419dd7
mov eax, dword [esi]
jmp 0x419dd9
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040f130
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00419a10
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x419d95
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 8], 8
jb 0x419da6
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], ax
jb 0x419dc7
push dword [ebp - 0x7c]
call fcn.004f2e36
add esp, 4
cmp dword [ebp - 0x24], ebx
jne 0x419d24
xor bl, bl
jmp 0x419ff6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419df7
lea ecx, [ebp - 0x338]
xor bl, bl
call fcn.00434710
jmp 0x419fd1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040e9e0
mov ecx, esi
call fcn.0041a080
push esi
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x340], al
mov byte [ebp - 0x339], 1
call fcn.0040e9e0
mov ecx, edi
call fcn.0041a080
test al, al
je 0x419e52
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0040f130
lea ecx, [ebp - 0x94]
cmp ecx, eax
je 0x419e4a
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
lea ecx, [ebp - 0x7c]
call fcn.0040ea90
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x419e60
cmp dword [ebp - 0x3c], 0
je 0x419f9d
xor eax, eax
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call fcn.00407970
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040eb30
test al, al
je 0x419eb8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040ef20
test al, al
je 0x419fc3
cmp byte [ebp - 0x340], 0
je 0x419efd
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419edf
shr eax, 4
and al, 1
jne 0x419f26
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x419f26
test bl, 4
je 0x419f1f
and ebx, 0xfffffffb
jmp 0x419f14
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
call fcn.0041b960
test al, al
jne 0x419f26
test bl, 8
je 0x419f1f
and ebx, 0xfffffff7
lea ecx, [ebp - 0x3f0]
call fcn.0042c7a0
mov byte [ebp - 0x339], 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x338]
call fcn.00434820
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x419f46
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 0x68], 8
jb 0x419f57
push dword [ebp - 0x7c]
call fcn.004f2e36
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x419f7f
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x338]
call fcn.004347c0
mov eax, dword [eax]
shr eax, 4
and eax, 0xffffff01
mov dword [ebp - 0x340], eax
cmp dword [ebp - 8], 8
jb 0x419f90
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
cmp byte [ebp - 0x339], 0
jne 0x419e60
mov bl, byte [ebp - 0x339]
lea ecx, [ebp - 0x94]
call fcn.0040ea90
lea ecx, [ebp - 0x4c]
call fcn.0040ea90
lea ecx, [ebp - 0x338]
call fcn.00434710
jmp 0x419fd1
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.0040ea90
jmp 0x419fa3
xor bl, bl
cmp dword [ebp - 0x50], 8
jb 0x419fe2
push dword [ebp - 0x64]
call fcn.004f2e36
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x20], 8
jb 0x41a007
push dword [ebp - 0x34]
call fcn.004f2e36
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret