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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608f83
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x67e4d0]
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 0x47e2a7
cmp dword [ebp + 0xc], 0
jne 0x47e2ae
xor eax, eax
jmp 0x47e833
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
cmp dword [ebp + 0x14], 0
jne 0x47e631
call fcn.0045caf0
push eax
lea ecx, [ebp - 0xac]
call fcn.00467100
mov dword [ebp - 4], 0
call fcn.0045cb10
mov ecx, eax
call fcn.00468a10
movzx eax, al
test eax, eax
je 0x47e439
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00467cb0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00468660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x47e354
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
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 0x47e389
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
mov dword [ebp - 0x2e4], 0
push 0x687ae0
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.00537115
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 0x47e434
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.00536df8
add esp, 4
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
jmp 0x47e61a
call fcn.0045cb10
push eax
lea ecx, [ebp - 0xac]
call fcn.00467bf0
mov dword [ebp - 0x318], 0
call fcn.0045ce30
movzx ecx, al
test ecx, ecx
je 0x47e5ce
call fcn.0045cb20
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x47e48f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ec80
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.0048f8c0
add esp, 0x10
test eax, eax
jne 0x47e4d0
mov dword [ebp - 0x2e8], 1
jmp 0x47e4da
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.0040ebb0
movzx edx, byte [ebp - 0x2cd]
test edx, edx
je 0x47e514
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x47e540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
push 0x687ae0
mov ecx, dword [ebp - 0x2c8]
push ecx
call fcn.00537115
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.0048f590
add esp, 0x10
test eax, eax
jne 0x47e5cc
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x304], ecx
push 1
mov edx, dword [ebp - 0x304]
push edx
call fcn.00536dc0
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
jmp 0x47e61a
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.00468660
push eax
call fcn.004a5730
add esp, 0x10
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jge 0x47e61a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00467590
jmp 0x47e708
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0045cac0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x47e659
jmp 0x47e710
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.0045cac0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x47e68d
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x47e710
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.0045cac0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x47e6b1
jmp 0x47e710
push 0x687ae0
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.00537115
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.0058a470
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
jne 0x47e2c2
cmp dword [ebp - 0x2cc], 0
jne 0x47e80b
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 0x47e74d
jmp 0x47e80b
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 0x47e770
jmp 0x47e80b
mov dword [ebp - 0x2f0], 0
push 0x687ae0
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.00537115
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 0x47e804
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.00536df8
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x47e80b
cmp dword [ebp - 0x2cc], 0
jne 0x47e818
xor eax, eax
jmp 0x47e833
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.00536569
mov esp, ebp
pop ebp
ret