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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x130c
call fcn.0060f180
push ebx
push esi
push edi
call fcn.00589cec
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x58a567
xor al, al
jmp 0x58a86e
push 0x54
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.005fc0d0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x78], 0x600
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x4c], 1
call fcn.004016fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c0]
call fcn.00401ad4
cmp word [ebp - 0x2c0], si
mov ebx, 0x104
je 0x58a5ec
cmp word [ebp - 0x2be], 0x3a
jne 0x58a5ec
cmp word [ebp - 0x2bc], si
jne 0x58a5ec
lea eax, [ebp - 0x2c0]
push eax
push 0x665c94
mov eax, ebx
lea edi, [ebp - 0x2c0]
call fcn.005383cd
pop ecx
pop ecx
lea eax, [ebp - 0x2c0]
push eax
mov esi, ebx
lea edi, [ebp - 0x4d0]
call fcn.004016da
mov eax, edi
lea esi, [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.004971c7
push dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
call fcn.00496a10
mov eax, esi
call fcn.0058a2d0
mov eax, esi
push eax
lea eax, [ebp - 0xef8]
push eax
call fcn.0053211c
push dword [ebp - 0xef8]
lea eax, [ebp - 0x10]
push eax
call fcn.0049bb17
push 0x3e
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.005fc0d0
mov esi, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xb8], 0x589c51
mov dword [ebp - 0xb4], 0x496931
mov dword [ebp - 0xb0], 0x589d3e
call fcn.00589cb4
cmp eax, 0xb
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
je 0x58a693
cmp eax, 2
jne 0x58a70b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x58a69f
mov eax, 0x631a7c
push eax
lea esi, [ebp - 0x1308]
call fcn.004cbcbb
xor eax, eax
push eax
push eax
push ebx
lea ecx, [ebp - 0x8e0]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c0]
push ecx
push eax
push 0x1b5
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x8e0]
lea esi, [ebp - 0x10]
mov byte [ebp - 0x7dd], 0
mov dword [ebp - 0x28], eax
call fcn.0058b88a
lea eax, [ebp - 0x1308]
push eax
mov eax, esi
push eax
call fcn.0049bb17
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x10]
call fcn.00589cb4
mov dword [edi], eax
mov eax, dword [edi]
cmp eax, 0xb
je 0x58a717
cmp eax, 2
jne 0x58a78e
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x58a723
mov eax, 0x631a7c
push eax
mov esi, ebx
lea edi, [ebp - 0x1308]
call fcn.004cbc9e
xor eax, eax
push eax
push eax
push ebx
lea ecx, [ebp - 0x8e0]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c0]
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x8e0]
lea esi, [ebp - 0x10]
mov byte [ebp - 0x7dd], 0
mov dword [ebp - 0x28], eax
call fcn.0058b88a
mov eax, edi
push eax
mov eax, esi
push eax
call fcn.0049bb17
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x10]
call fcn.00589cb4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edi, ecx
mov edi, dword [edi]
cmp edi, 0x50
mov byte [ebp + 0x17], 0
jne 0x58a7a6
push dword [ebp + 0x10]
call fcn.00401d4e
jmp 0x58a84e
cmp edi, 0x51
je 0x58a84e
cmp edi, 0x52
je 0x58a84e
push 0x2f
lea ecx, [ebp - 0x1c]
call fcn.004c1c29
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0x10]
dec ecx
cmp eax, ecx
jne 0x58a7d7
call fcn.00401e3b
mov byte [ebp + 0x17], al
jmp 0x58a84e
call fcn.00401e3b
test al, al
mov byte [ebp + 0x17], al
jne 0x58a84e
push dword [ebp + 0x10]
mov esi, 0x410
lea edi, [ebp - 0xcf0]
call fcn.004016da
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
cmp eax, 0xffffffff
setne byte [ebp + 0x17]
cmp byte [ebp + 0x17], 0
jne 0x58a84e
push dword [ebp + 0x10]
lea esi, [ebp - 0xcf0]
call fcn.004cbcbb
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
setne byte [ebp + 0x17]
cmp byte [ebp + 0x17], 0
jne 0x58a84e
push dword [ebp + 0x10]
mov esi, ebx
lea edi, [ebp - 0xcf0]
call fcn.004cbc9e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne byte [ebp + 0x17]
push dword [ebp - 0xcf4]
call fcn.005f858a
pop ecx
push dword [ebp - 0x1c]
call fcn.005f858a
pop ecx
lea esi, [ebp - 0x10]
call fcn.0049baf4
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
leave
ret 0x10