Function at 0x58d60e
Capabilities:
Read file via mapping

Disassembly:
push 0x24c
mov eax, 0x4962ba
call fcn.0047ec24
mov edi, ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x224], ecx
test eax, eax
je 0x58d693
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x58d68d
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
test bl, 8
je 0x58d650
mov dword [edi + 0x5c], eax
push 5
jmp 0x58d652
push 4
pop eax
mov dword [edi + 0x6c], eax
test bl, 2
je 0x58dabc
push 0x405920
push dword [0x5a5258]
call fcn.0047d69a
mov dword [edi + 0x74], eax
pop ecx
pop ecx
test eax, eax
jne 0x58dab7
mov ecx, edi
call fcn.0058cebb
mov eax, 0x8007000e
jmp 0x58db68
mov ecx, dword [ebp - 0x224]
test esi, esi
je 0x58d6dd
mov ebx, dword [ebp + 0xc]
test bl, 0x10
jne 0x58d6c3
mov eax, dword [esi]
lea ecx, [ebp - 0x22c]
push ecx
push 2
push edx
push edx
push esi
call dword [eax + 0x14]
test eax, eax
js 0x58db68
mov eax, dword [ebp - 0x22c]
mov dword [edi + 0x64], eax
jmp 0x58d6c6
mov dword [edi + 0x64], edx
mov dword [edi + 0x4c], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [edi + 0x6c], 3
xor edx, edx
jmp 0x58d656
test ecx, ecx
je 0x58db63
cmp word [ecx], dx
je 0x58db63
mov ebx, dword [ebp + 0xc]
test bl, 0x10
je 0x58d73d
push edx
push edx
push 0
pop eax
test bl, 0x20
sete al
inc eax
push eax
push edx
push edx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x50], eax
cmp eax, 0xffffffff
jne 0x58d734
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x58db68
movzx eax, ax
or eax, 0x80070000
jmp 0x58db68
mov dword [edi + 0x6c], 1
jmp 0x58d6d6
test bl, 2
jne 0x58d65f
push 4
pop esi
test bl, 4
jne 0x58d7e6
push 5
pop esi
test ebx, 0x400
je 0x58d7e6
push 0x20
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edx, eax
mov dword [edi + 0x58], edx
test edx, edx
je 0x58d7de
push 2
pop eax
and edx, 0xfffffffc
mov dword [edi + 0x6c], eax
lea ecx, [ebp - 0x258]
mov dword [edi + 0x70], eax
mov dword [edi + 0x60], edx
mov dword [edi + 0x5c], edx
call fcn.0055aeb8
push ecx
push edx
call fcn.0055b73a
test eax, eax
js 0x58d7c0
lea eax, [ebp - 0x220]
push eax
call fcn.0058bc71
xor edx, edx
cmp dword [eax], edx
jne 0x58d7c2
mov ecx, dword [ebp - 0x258]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x50]
mov dword [edi + 0x64], eax
jmp 0x58d7e0
xor edx, edx
push dword [edi + 0x58]
mov dword [edi + 0x6c], edx
mov dword [edi + 0x70], edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov dword [edi + 0x58], edx
jmp 0x58d7e0
xor edx, edx
mov ecx, dword [ebp - 0x224]
cmp dword [edi + 0x58], edx
jne 0x58dabc
push edx
push edx
push 3
push edx
push esi
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0xffffffff
je 0x58d81e
mov dword [ebp - 0x238], 1
mov dword [ebp - 4], ecx
je 0x58d93a
push 2
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x64], eax
test eax, eax
jne 0x58d843
mov esi, 0x8013110b
jmp 0x58da53
test ebx, 0x800
je 0x58da9f
mov eax, dword [0x5a2a4c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, 0xffffffff
jne 0x58d8fc
mov eax, dword [0x5b3b8c]
test eax, eax
jne 0x58d8c2
push 0x40132c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x58d8ac
push 0x42d1ec
push eax
call esi
test eax, eax
je 0x58d8ac
push 0x800
push 0
push 0x42e6f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x58d8ac
push 0x42e724
push eax
call esi
mov dword [0x5b3b8c], eax
jmp 0x58d8b1
mov eax, dword [0x5b3b8c]
test eax, eax
jne 0x58d8c2
xor edx, edx
mov dword [0x5a2a4c], edx
jmp 0x58daa1
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
push ecx
call eax
mov esi, eax
test esi, esi
js 0x58da53
cmp dword [ebp - 0x220], 0
je 0x58d8f1
mov dword [0x5a2a4c], 1
jmp 0x58d907
xor edx, edx
mov eax, edx
mov dword [0x5a2a4c], eax
jmp 0x58d8fe
xor edx, edx
cmp eax, 1
jne 0x58daa1
mov eax, dword [0x5b3b88]
test eax, eax
jne 0x58d958
push 0x800
push eax
push 0x42e6f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x58d93a
push 0x42e708
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b3b88], eax
test eax, eax
jne 0x58d958
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x58da53
movzx esi, si
or esi, 0x80070000
jmp 0x58da53
mov esi, dword [ebp - 0x23c]
push 0
push 0
push esi
call eax
test eax, eax
jns 0x58da9f
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
and dword [ebp - 0x230], 0
mov esi, eax
mov dword [ebp - 0x234], esi
cmp esi, 0xffffffff
je 0x58d99a
mov dword [ebp - 0x230], 1
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x58d9af
mov esi, eax
jmp 0x58da39
cmp eax, 0xb7
jne 0x58d9bd
mov esi, 0x800700b7
jmp 0x58da39
xor eax, eax
push eax
push eax
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], ecx
test eax, eax
jne 0x58d9e5
mov dword [ebp - 0x220], ecx
jmp 0x58d9f4
xor edx, edx
inc edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x220], edx
mov byte [ebp - 4], 2
test eax, eax
jne 0x58da13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x58da24
movzx esi, si
or esi, 0x80070000
jmp 0x58da24
push dword [edi + 0x64]
push eax
push ecx
call dword [0x5b3b88]
mov esi, eax
test esi, esi
jns 0x58da74
cmp dword [ebp - 0x228], 0
je 0x58da39
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x230], 0
je 0x58da53
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x58da53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], 0
je 0x58da6d
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x58da6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x58db68
cmp dword [ebp - 0x220], 0
je 0x58da89
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x230], 0
je 0x58da9f
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov eax, dword [ebp - 0x23c]
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x6c], 1
jmp 0x58dabc
xor edx, edx
mov dword [edi + 0x78], edx
mov ecx, dword [ebp - 0x224]
mov dword [edi + 0x68], ebx
test ecx, ecx
je 0x58db20
cmp word [ecx], dx
je 0x58db20
push ecx
lea eax, [ebp - 0x21c]
push eax
push edx
push edx
sub esp, 0xc
call fcn.0058de81
xor esi, esi
mov edx, 0x401d60
push esi
push ecx
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.00551328
test eax, eax
jne 0x58db02
mov dword [edi], 4
jmp 0x58db20
push esi
push ecx
push ecx
push esi
mov edx, 0x426e90
lea ecx, [ebp - 0x21c]
call fcn.00551328
test eax, eax
jne 0x58db20
mov dword [edi], 5
test byte [edi + 0x48], 4
je 0x58db5f
cmp dword [edi + 0x6c], 1
je 0x58db32
cmp dword [edi + 0x6c], 3
jne 0x58db5f
test bl, 0x10
jne 0x58db5f
push ecx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0058d371
mov esi, eax
test esi, esi
jns 0x58db5f
mov ecx, edi
call fcn.0058cebb
jmp 0x58da6d
xor eax, eax
jmp 0x58db68
mov eax, 0x80070057
call fcn.0047ebd3
ret 0x18