Function at 0x589d30
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x5cf4ba
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov edi, dword [esp + 0x328]
push 0x103
lea eax, [esp + 0x215]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x28], edi
mov byte [esp + 0x21c], 0
call fcn.005a06a0
add esp, 0xc
lea ecx, [esp + 0x210]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
cmp dword [edi + 0x18], 0x10
jb 0x589dbc
mov eax, dword [edi + 4]
add edi, 4
mov dword [esp + 0x18], edi
jmp 0x589dc3
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x589e10
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
push 0
mov ebp, eax
push ebp
push 0
push 2
push 0
push ebx
mov dword [esp + 0x40], ebp
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x589e17
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
jmp 0x58a285
push ebp
push 0
push 0
push 4
push edi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x589e40
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
xor al, al
jmp 0x58a285
xor eax, eax
lea edx, [esp + 0x60]
lea edi, [esi + 4]
push edx
mov ecx, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.0058abd0
mov ecx, edi
call fcn.004a1f00
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 4], eax
xor eax, eax
mov dword [esp + 0x34], ebp
mov dword [ebp], ebx
mov dword [ebp + 8], ecx
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], eax
mov byte [esp + 0x74], al
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x44]
mov dword [esp + 0x320], eax
call fcn.00589640
lea edx, [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x328], 1
call fcn.0058a960
push eax
lea eax, [esp + 0x64]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x328], 2
call fcn.0058b190
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x24], edx
call fcn.0058a710
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jb 0x589f08
mov eax, dword [esp + 0x48]
push eax
call fcn.0059e6bb
add esp, 4
xor ebx, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x320], 0xffffffff
cmp dword [esp + 0x88], edi
jb 0x589f3b
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0059e6bb
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0046a5f0
mov edi, eax
add edi, 0x1c
push 0xffffffffffffffff
mov dword [edi], ebp
mov ebp, dword [esp + 0x20]
push ebx
push ebp
lea ecx, [edi + 4]
call fcn.00401620
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], edx
cmp dword [ebp + 0x18], 0x10
jb 0x589f71
mov eax, dword [eax]
mov edx, dword [esi]
push 0x5f3570
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebp, eax
cmp ebp, ebx
je 0x589e10
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ebp
push 1
push 4
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], ebx
call edx
cmp dword [esp + 0x30], 0xbac04ac0
mov eax, dword [esi]
push ebp
je 0x589fbc
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x58a285
mov edx, dword [eax + 0x14]
push 1
push 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebx
call edx
mov eax, dword [esi]
push ebp
cmp dword [esp + 0x3c], ebx
ja 0x589fae
mov edx, dword [eax + 0x14]
push 1
push 1
lea ecx, [esp + 0x22]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
call edx
test byte [esp + 0x16], 0x80
jne 0x58a218
lea esp, [esp]
cmp eax, ebx
je 0x58a218
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebp
push 1
push 1
lea ecx, [esp + 0x23]
push ecx
mov ecx, esi
mov byte [esp + 0x27], bl
call edx
movzx ecx, byte [esp + 0x17]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
push ebp
push ecx
push 1
lea edx, [esp + 0x11c]
push edx
mov ecx, esi
call eax
movzx ecx, byte [esp + 0x17]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ebp
push 1
push 4
lea eax, [esp + 0x24]
mov byte [esp + ecx + 0x11c], bl
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebp
push 1
push 8
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x48]
call fcn.004013c0
mov dword [esp + 0x320], 3
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
lea ebx, [esp + 0x44]
lea edi, [esp + 0x9c]
mov byte [esp + 0x320], 4
call fcn.00589640
lea ecx, [esp + 0x6c]
push ecx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x328], 5
call fcn.0058a960
push eax
lea edx, [esp + 0xbc]
push edx
lea ecx, [esi + 0x20]
mov byte [esp + 0x328], 6
call fcn.0058b190
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x2c], edx
call fcn.0058a710
mov edi, 0x10
cmp dword [esp + 0xb4], edi
jb 0x58a123
mov eax, dword [esp + 0xa0]
push eax
call fcn.0059e6bb
add esp, 4
xor ebx, ebx
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x88], edi
jb 0x58a154
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0x320], 0xffffffff
cmp dword [esp + 0x5c], edi
jb 0x58a188
mov edx, dword [esp + 0x48]
push edx
call fcn.0059e6bb
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.0046a5f0
mov edi, eax
mov eax, dword [esp + 0x34]
add edi, 0x1c
mov dword [edi], eax
lea eax, [esp + 0x110]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x58a1b6
sub eax, ecx
push eax
lea ecx, [esp + 0x114]
push ecx
lea ecx, [edi + 4]
call fcn.00401590
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x28], eax
mov edx, dword [esp + 0x18]
mov dword [edi + 0x2c], edx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0x20], ecx
mov edx, dword [esp + 0x40]
mov dword [edi + 0x24], edx
add eax, dword [esp + 0x18]
push ebp
push 1
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 1
lea ecx, [esp + 0x22]
push ecx
mov ecx, esi
mov byte [esp + 0x26], bl
call edx
xor ebx, ebx
test byte [esp + 0x16], 0x80
je 0x58a000
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
je 0x58a244
cmp eax, ecx
je 0x58a249
call fcn.0059ec50
cmp dword [esp + 0x24], edi
je 0x58a279
lea ecx, [esp + 0x20]
call fcn.0046a5f0
mov ecx, dword [esp + 0x34]
add eax, 0x1c
cmp dword [eax], ecx
jne 0x58a26a
mov edx, dword [esp + 0x28]
add dword [eax + 0x28], edx
lea ecx, [esp + 0x20]
call fcn.0058a4a0
mov eax, dword [esp + 0x20]
jmp 0x58a236
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ebp
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0059e619
add esp, 0x310
ret 4