Function at 0x597b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8bae
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x340], ecx
mov eax, dword [ebp - 0x340]
add eax, 0x514
push eax
lea ecx, [ebp - 0x388]
call fcn.0042ea30
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x340]
call fcn.00598f30
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004276b0
mov byte [ebp - 4], 1
push 0x608c34
lea ecx, [ebp - 0x28]
call fcn.004276b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004275c0
push eax
call fcn.004d915b
add esp, 4
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
sub edx, 1
push edx
lea ecx, [ebp - 0x40]
call fcn.00438ef0
mov ax, word [eax]
mov word [ebp - 0x344], ax
movzx ecx, word [ebp - 0x344]
cmp ecx, 0x5c
je 0x597bf8
movzx edx, word [ebp - 0x344]
cmp edx, 0x2f
jne 0x597c35
mov eax, dword [ebp - 0x358]
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00438e40
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
push edx
lea ecx, [ebp - 0x28]
call fcn.00430d70
lea ecx, [ebp - 0xb8]
call fcn.00427660
jmp 0x597c41
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042ef10
mov dword [ebp - 0x360], 0
mov byte [ebp - 0x345], 0
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004275c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffffff
je 0x597c8c
mov edx, dword [ebp - 0x338]
and edx, 0x10
je 0x597c8c
mov dword [ebp - 0x360], 1
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x360], 0
je 0x597cd1
lea ecx, [ebp - 0x28]
call fcn.004275c0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38c], esp
push eax
call fcn.004276b0
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x340]
call fcn.00597580
jmp 0x597fa1
lea ecx, [ebp - 0x36c]
call fcn.0042d8b0
mov byte [ebp - 4], 3
push 0x608c40
lea ecx, [ebp - 0x70]
call fcn.004276b0
mov byte [ebp - 4], 4
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x33c], 0
lea ecx, [ebp - 0x70]
call fcn.0042f150
mov dword [ebp - 0x384], eax
lea ecx, [ebp - 0x28]
call fcn.0042f150
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x34c]
jge 0x597e22
mov edx, dword [ebp - 0x33c]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00438e90
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jge 0x597db1
mov ecx, dword [ebp - 0x34c]
sub ecx, dword [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x28]
call fcn.00438e40
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x378], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x378]
push edx
lea ecx, [ebp - 0x36c]
call fcn.00438cb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.00427660
jmp 0x597e22
mov eax, dword [ebp - 0x350]
sub eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00438e40
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x380]
push ecx
lea ecx, [ebp - 0x36c]
call fcn.00438cb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe8]
call fcn.00427660
mov edx, dword [ebp - 0x350]
add edx, dword [ebp - 0x384]
mov dword [ebp - 0x33c], edx
jmp 0x597d21
lea ecx, [ebp - 0x36c]
call fcn.00430cc0
cmp eax, 1
jne 0x597ee2
mov eax, dword [ebp - 0x340]
cmp dword [eax + 0x6e0], 0
je 0x597edd
push 0
lea ecx, [ebp - 0x36c]
call fcn.00430ca0
mov ecx, eax
call fcn.004275c0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004276b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call fcn.004275c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x597ece
push 0
lea ecx, [ebp - 0x36c]
call fcn.00430ca0
mov ecx, eax
call fcn.004275c0
push eax
lea ecx, [ebp - 0x88]
call fcn.004276b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x340]
mov ecx, dword [edx + 0x6e0]
call fcn.00438cb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.00427660
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00427660
jmp 0x597f86
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00427560
jmp 0x597f0a
push 0
lea ecx, [ebp - 0x394]
push ecx
lea ecx, [ebp - 0x354]
call fcn.00438a70
lea edx, [ebp - 0x398]
push edx
lea ecx, [ebp - 0x36c]
call fcn.00427500
push eax
lea ecx, [ebp - 0x354]
call fcn.004272d0
movzx eax, al
test eax, eax
je 0x597f86
lea ecx, [ebp - 0x354]
call fcn.00438aa0
mov ecx, eax
call fcn.004275c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004276b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.004275c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x597f75
lea ecx, [ebp - 0x58]
call fcn.004275c0
push eax
mov ecx, dword [ebp - 0x340]
call fcn.00597b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00427660
jmp 0x597ef6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00427660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x36c]
call fcn.00430cf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00427660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00427660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x388]
call fcn.0042ea50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret 4