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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612893
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x460a27
cmp dword [ebp + 0xc], 0
jne 0x460a2e
xor eax, eax
jmp 0x460fb3
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
cmp dword [ebp + 0x14], 0
jne 0x460db1
call fcn.0043c800
push eax
lea ecx, [ebp - 0xac]
call fcn.00446e20
mov dword [ebp - 4], 0
call fcn.0043c820
mov ecx, eax
call fcn.00448730
movzx eax, al
test eax, eax
je 0x460bb9
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004479d0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00448380
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x460ad4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
push 0
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x460b09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
mov dword [ebp - 0x2e4], 0
push 0x697b18
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.00537378
add esp, 8
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2cc], ecx
push 0
lea edx, [ebp - 0x2e4]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, dword [ebp - 0x2c8]
je 0x460bb4
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.0053705b
add esp, 4
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
jmp 0x460d9a
call fcn.0043c820
push eax
lea ecx, [ebp - 0xac]
call fcn.00447910
mov dword [ebp - 0x318], 0
call fcn.0043cb40
movzx ecx, al
test ecx, ecx
je 0x460d4e
call fcn.0043c830
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x460c0f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040eae0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x300]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.004722c0
add esp, 0x10
test eax, eax
jne 0x460c50
mov dword [ebp - 0x2e8], 1
jmp 0x460c5a
mov dword [ebp - 0x2e8], 0
mov cl, byte [ebp - 0x2e8]
mov byte [ebp - 0x2cd], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040ea10
movzx edx, byte [ebp - 0x2cd]
test edx, edx
je 0x460c94
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x460cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
push 0x697b18
mov ecx, dword [ebp - 0x2c8]
push ecx
call fcn.00537378
add esp, 8
mov dword [ebp - 0x2fc], eax
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2cc], edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x300]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.00471f90
add esp, 0x10
test eax, eax
jne 0x460d4c
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x304], ecx
push 1
mov edx, dword [ebp - 0x304]
push edx
call fcn.00537023
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
jmp 0x460d9a
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xac]
call fcn.00448380
push eax
call fcn.00488160
add esp, 0x10
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jge 0x460d9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004472b0
jmp 0x460e88
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0043c7d0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x460dd9
jmp 0x460e90
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.0043c7d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x460e0d
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x460e90
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.0043c7d0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x460e31
jmp 0x460e90
push 0x697b18
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.00537378
add esp, 8
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.0058a0d0
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
jne 0x460a42
cmp dword [ebp - 0x2cc], 0
jne 0x460f8b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0xffffffff
jne 0x460ecd
jmp 0x460f8b
push 0
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x460ef0
jmp 0x460f8b
mov dword [ebp - 0x2f0], 0
push 0x697b18
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.00537378
add esp, 8
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2cc], eax
push 0
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x2c8]
je 0x460f84
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.0053705b
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x460f8b
cmp dword [ebp - 0x2cc], 0
jne 0x460f98
xor eax, eax
jmp 0x460fb3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2cc]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret