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

Disassembly:
push 0x250
mov eax, 0x58ffc6
call fcn.00455436
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24c], eax
call fcn.00471136
test ebx, ebx
jne 0x4713d8
call fcn.00459d98
push eax
lea ecx, [ebp - 0x244]
call fcn.00456642
mov dword [ebp - 4], ebx
call fcn.00459d9e
mov ecx, eax
call fcn.00456e7d
test al, al
je 0x471252
mov ebx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x244]
push dword [ebx]
call fcn.00456970
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x244]
call fcn.0041bb30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4711f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00456789
jmp 0x471452
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
test eax, eax
je 0x4711e2
and dword [ebp - 0x248], 0
inc eax
push eax
call fcn.004556d9
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi], eax
push 0
mov byte [eax + ecx], 0
lea eax, [ebp - 0x248]
push eax
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x248]
cmp eax, dword [esi + 4]
je 0x4712e5
mov ecx, esi
call fcn.00471136
jmp 0x4711e2
call fcn.00459d9e
push eax
lea ecx, [ebp - 0x244]
call fcn.00456953
call fcn.0045a127
test al, al
je 0x471275
call fcn.00459da4
mov edi, eax
jmp 0x4712e1
call fcn.00459daa
push eax
lea ecx, [ebp - 0x254]
call fcn.00456642
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.004566c0
push 0xffffffffffffffff
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.0041bb30
push eax
lea ecx, [ebp - 0x25c]
call fcn.00457215
push eax
lea ecx, [ebp - 0x244]
call fcn.0041bb30
push eax
call fcn.0046e5a1
pop ecx
pop ecx
lea ecx, [ebp - 0x25c]
mov edi, eax
call fcn.00456789
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.00456789
test edi, edi
jne 0x4712f9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00456789
jmp 0x47144c
mov dword [ebp - 0x250], ebx
lea ecx, [ebp - 0x248]
mov ebx, dword [ebp - 0x24c]
push 0xffffffffffffffff
push dword [ebx]
call fcn.0045665e
push 0x5a2d98
push 0x59c3f8
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.00457025
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
push 1
lea ecx, [ebp - 0x248]
call fcn.0041bb30
push eax
push edi
call fcn.0046e025
add esp, 0x14
test eax, eax
je 0x471366
lea ecx, [ebp - 0x248]
call fcn.00456789
jmp 0x4711e2
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
test eax, eax
je 0x471356
inc eax
push eax
call fcn.004556d9
mov ecx, dword [esi + 4]
mov dword [esi], eax
mov byte [eax + ecx], 0
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x250]
push edi
call fcn.0046e9c1
add esp, 0x14
test eax, eax
je 0x4713b8
cmp eax, 0x600
je 0x4713b8
mov ecx, esi
call fcn.00471136
call fcn.0045a127
test al, al
jne 0x471356
push edi
call fcn.0046df0a
pop ecx
jmp 0x471356
call fcn.0045a127
test al, al
jne 0x4713c8
push edi
call fcn.0046df0a
pop ecx
lea ecx, [ebp - 0x248]
call fcn.00456789
jmp 0x4712e5
test edi, edi
jne 0x4713e3
call fcn.00459d89
mov edi, eax
mov eax, dword [ebp - 0x24c]
push ebx
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x47144c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x250], eax
push ebx
test eax, eax
je 0x471446
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x47144c
inc eax
push eax
call fcn.004556d9
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi], eax
mov byte [eax + ecx], 0
push dword [esi + 4]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00511dc0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x24c]
xor eax, eax
cmp dword [esi], eax
jne 0x4714cb
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4714cb
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
test eax, eax
je 0x4714cb
inc eax
mov dword [ebp - 0x250], ebx
push eax
call fcn.004556d9
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi], eax
push ebx
mov byte [eax + ecx], bl
lea eax, [ebp - 0x250]
push eax
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x250]
cmp eax, dword [esi + 4]
je 0x4714cb
mov ecx, esi
call fcn.00471136
xor eax, eax
cmp eax, dword [esi + 4]
sbb eax, eax
neg eax
call fcn.004553e0
ret 0xc