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

Disassembly:
push 0x250
mov eax, 0x66323c
call fcn.00630ebf
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x248], eax
call fcn.00488274
test ebx, ebx
jne 0x488512
call fcn.00471180
push eax
lea ecx, [ebp - 0x244]
call fcn.0046c3d8
mov dword [ebp - 4], ebx
call fcn.00471186
mov ecx, eax
call fcn.0046cb2d
test al, al
je 0x48838e
mov ebx, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
push dword [ebx]
call fcn.0046c6bb
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [ebp - 0x244]
call fcn.0045f470
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48837a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
test eax, eax
je 0x48837a
and dword [ebp - 0x24c], 0
inc eax
push eax
call fcn.00630807
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi], eax
push 0
mov byte [eax + ecx], 0
lea eax, [ebp - 0x24c]
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 - 0x24c]
cmp eax, dword [esi + 4]
je 0x488421
mov ecx, esi
call fcn.00488274
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0046c4ca
jmp 0x48858c
call fcn.00471186
push eax
lea ecx, [ebp - 0x244]
call fcn.0046c69e
call fcn.00471457
test al, al
je 0x4883b1
call fcn.0047118c
mov edi, eax
jmp 0x48841d
call fcn.00471192
push eax
lea ecx, [ebp - 0x254]
call fcn.0046c3d8
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.0046c42f
push 0xffffffffffffffff
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.0045f470
push eax
lea ecx, [ebp - 0x25c]
call fcn.0046ce9e
push eax
lea ecx, [ebp - 0x244]
call fcn.0045f470
push eax
call fcn.004849c1
pop ecx
pop ecx
lea ecx, [ebp - 0x25c]
mov edi, eax
call fcn.0046c4ca
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.0046c4ca
test edi, edi
jne 0x488435
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0046c4ca
jmp 0x488586
mov dword [ebp - 0x250], ebx
lea ecx, [ebp - 0x24c]
mov ebx, dword [ebp - 0x248]
push 0xffffffffffffffff
push dword [ebx]
call fcn.0046c3f4
push 0x671274
push 0x669428
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.0046ccd5
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
push 1
lea ecx, [ebp - 0x24c]
call fcn.0045f470
push eax
push edi
call fcn.00484371
add esp, 0x14
test eax, eax
jne 0x4884e2
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
test eax, eax
je 0x4884e2
inc eax
push eax
call fcn.00630807
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.00484e38
add esp, 0x14
test eax, eax
je 0x4884f2
cmp eax, 0x600
je 0x4884f2
mov ecx, esi
call fcn.00488274
call fcn.00471457
test al, al
jne 0x4884e2
push edi
call fcn.00484158
pop ecx
lea ecx, [ebp - 0x24c]
call fcn.0046c4ca
jmp 0x48837a
call fcn.00471457
test al, al
jne 0x488502
push edi
call fcn.00484158
pop ecx
lea ecx, [ebp - 0x24c]
call fcn.0046c4ca
jmp 0x488421
test edi, edi
jne 0x48851d
call fcn.00471171
mov edi, eax
mov eax, dword [ebp - 0x248]
push ebx
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x488586
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x250], eax
push ebx
test eax, eax
je 0x488580
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x488586
inc eax
push eax
call fcn.00630807
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.00632120
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x248]
xor eax, eax
cmp dword [esi], eax
jne 0x488605
push eax
push 0x80
push 3
push eax
push 1
push connect
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x488605
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
test eax, eax
je 0x488605
inc eax
mov dword [ebp - 0x250], ebx
push eax
call fcn.00630807
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 0x488605
mov ecx, esi
call fcn.00488274
xor eax, eax
cmp eax, dword [esi + 4]
sbb eax, eax
neg eax
call fcn.00630e7a
ret 0xc