Function at 0x580650
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x733350
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], 0
push 0x7606bc
push 0x760b04
lea ecx, [ebp + 8]
call fcn.00598370
lea eax, [ebp - 0x90]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00574df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
push 0x7606bc
call fcn.00577f20
lea edx, [ebp + 8]
push edx
call fcn.0059a440
add esp, 0xc
push 0x75d15e
lea ecx, [ebp - 0x18]
call fcn.00577f20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.00574dd0
jmp 0x580724
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], edx
lea eax, [ebp - 0x90]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x54]
call fcn.00574dd0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx]
jne 0x580765
mov dword [ebp - 0x24], 1
jmp 0x58076c
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x580783
mov dword [ebp - 0x28], 1
jmp 0x58078a
mov dword [ebp - 0x28], 0
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0xe], dl
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x580876
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jne 0x5807c2
mov dword [ebp - 0x2c], 1
jmp 0x5807c9
mov dword [ebp - 0x2c], 0
movzx eax, byte [ebp - 0x2c]
cmp eax, 1
jne 0x5807d7
jmp 0x58070c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x18]
call fcn.005804a0
mov ecx, 0x7606bc
test ecx, ecx
jne 0x580818
mov dword [ebp - 0x34], 0
jmp 0x580828
push 0x7606bc
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x7606bc
lea ecx, [ebp - 0x18]
call fcn.005804a0
lea ecx, [ebp - 0x18]
call fcn.005785c0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x580871
lea ecx, [ebp - 0x18]
call fcn.005785c0
mov dword [ebp - 0x78], eax
push 0
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x38], eax
jmp 0x58070c
mov dword [ebp - 0x84], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
sub edx, 0x10
mov dword [ebp - 0x7c], edx
mov ecx, dword [ebp - 0x7c]
call fcn.00577240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0059c460
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.00577240
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4