Function at 0x5cb5f0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7be7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x2d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x300]
mov eax, dword [esp + 0x308]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp ecx, ebx
je 0x5cb99a
cmp edx, ebx
je 0x5cb99a
or ebp, 0xffffffff
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x5cb8a7
call fcn.00596610
push eax
lea ecx, [esp + 0x50]
call fcn.0059d4d0
mov dword [esp + 0x2f4], ebx
call fcn.00596620
mov ecx, eax
call fcn.0059cec0
test al, al
je 0x5cb763
mov eax, dword [esp + 0x304]
push eax
lea ecx, [esp + 0x50]
call fcn.0059d0e0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [esp + 0x64]
call fcn.0059cef0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebp
jne 0x5cb6e3
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x5cb708
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
push eax
mov dword [esp + 0x24], ebx
call fcn.0070a654
mov edx, dword [esp + 0x1c]
add esp, 4
push ebx
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
je 0x5cb6ce
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00725356
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
call fcn.00596620
push eax
lea ecx, [esp + 0x50]
call fcn.0059d0c0
call fcn.00596630
test al, al
je 0x5cb869
call fcn.00596640
mov esi, eax
cmp esi, ebx
jne 0x5cb79f
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
mov edx, dword [esp + 0x304]
push edx
lea ecx, [esp + 0x34]
call fcn.00403bf0
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov byte [esp + 0x304], 1
call fcn.0063f7f0
add esp, 0x10
test eax, eax
sete byte [esp + 0x1f]
cmp dword [esp + 0x48], 8
mov byte [esp + 0x2f4], bl
jb 0x5cb7f5
mov eax, dword [esp + 0x34]
push eax
call fcn.00704960
add esp, 4
cmp byte [esp + 0x1f], bl
je 0x5cb810
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
mov eax, dword [esp + 0x2e4]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x5cb834
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
push eax
call fcn.0070a654
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x28], eax
call fcn.0063e180
add esp, 0x14
test eax, eax
jne 0x5cb6ce
mov eax, dword [esp + 0x14]
push eax
call fcn.00704960
jmp 0x5cb747
mov eax, dword [esp + 0x304]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x58]
call fcn.0059cef0
push eax
call fcn.00645940
add esp, 0x10
cmp eax, ebx
jge 0x5cb6ce
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebp
call fcn.0059cc80
jmp 0x5cb918
mov ecx, dword [esp + 0x304]
push eax
push ecx
call fcn.00596600
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x5cb918
push esi
call fcn.00596600
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
cmp edi, ebx
je 0x5cb912
call fcn.00596600
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x5cb918
push eax
call fcn.0070a654
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.007248d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x5cb9cc
mov ecx, dword [esp + 0x304]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebp
je 0x5cb9c4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x5cb9c4
push eax
mov dword [esp + 0x28], ebx
call fcn.0070a654
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
lea edx, [esp + 0x28]
push edx
push ecx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x18]
je 0x5cb9c4
mov eax, dword [esp + 0x14]
push eax
call fcn.00725356
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x2e4
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5cb99a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, 1
jmp 0x5cb99c