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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f606
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2dc], ecx
test edx, edx
je 0x4a0c0d
test ecx, ecx
je 0x4a0c0d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
test eax, eax
jne 0x4a0af7
call fcn.0048f1b0
mov ecx, eax
call fcn.0048ce20
test al, al
je 0x4a0899
or edi, 0xffffffff
call fcn.0048f260
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0048be80
mov dword [ebp - 4], 0
call fcn.0048f1a0
push eax
lea ecx, [ebp - 0x130]
call fcn.0048be80
mov dword [ebp - 4], 1
lea esi, [ebp - 0x1b4]
push esi
lea ecx, [ebp - 0xac]
call fcn.0048be80
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.0048ce20
test al, al
jne 0x4a07c6
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.0048c460
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0xac]
call fcn.00477330
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a07e7
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00420d00
add esi, 0x84
lea eax, [ebp - 0xac]
cmp esi, eax
jne 0x4a0772
jmp 0x4a07f2
lea ecx, [ebp - 0xac]
call fcn.00420d00
push fcn.00420d00
push 2
push 0x84
lea eax, [ebp - 0x1b4]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004746b1
cmp edi, 0xffffffff
je 0x4a0b69
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x4a0b6f
push eax
mov dword [ebp - 0x2d0], 0
call fcn.00474ac5
add esp, 4
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2d0]
push 0
push ecx
push dword [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2c8]
cmp dword [ebp - 0x2d0], eax
je 0x4a0b75
push dword [ebp - 0x2cc]
call fcn.00474ace
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x4a0b89
call fcn.0048f380
test al, al
je 0x4a0a0b
mov dword [ebp - 0x2d0], 0xffffffff
call fcn.0048f280
mov dword [ebp - 0x2e4], eax
call fcn.0048f1c0
mov dword [ebp - 0x2e0], eax
lea esi, [ebp - 0x2e4]
nop dword [eax]
mov edi, dword [esi]
test edi, edi
je 0x4a0992
push 0x218
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0051e890
add esp, 0xc
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x10]
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4a0910
sub edx, ebx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.0041cc20
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00485880
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
cmp edx, 8
jb 0x4a098e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0984
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0c52
push edx
push ecx
call fcn.004747df
add esp, 8
test ebx, ebx
jne 0x4a09a8
add esi, 4
lea eax, [ebp - 0x2dc]
cmp esi, eax
jne 0x4a08d0
jmp 0x4a0b69
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x4a0b6f
push eax
call fcn.00474ac5
push dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
push eax
push dword [ebp - 0x2d0]
push edi
call fcn.004855d0
add esp, 0x14
test eax, eax
jne 0x4a0b69
push 1
push dword [ebp - 0x2cc]
call fcn.004747df
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
mov dword [ebp - 0x2cc], 0
jmp 0x4a0b83
mov edi, 0x80004005
call fcn.0048f270
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0048f260
mov ecx, eax
call fcn.0048c370
mov dword [ebp - 4], 4
call fcn.0048f1b0
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0048f1a0
mov ecx, eax
call fcn.0048c370
mov dword [ebp - 4], 5
lea esi, [ebp - 0x1b4]
nop word [eax + eax]
push esi
lea ecx, [ebp - 0xac]
call fcn.0048be80
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.0048ce20
test al, al
jne 0x4a0aaa
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.00477330
push eax
call fcn.00484250
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x4a0acb
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.00420d00
add esi, 0x84
lea eax, [ebp - 0xac]
cmp esi, eax
jne 0x4a0a60
jmp 0x4a0ad6
lea ecx, [ebp - 0xac]
call fcn.00420d00
push fcn.00420d00
push 2
push 0x84
lea eax, [ebp - 0x1b4]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004746b1
jmp 0x4a0b69
push eax
push dword [ebp + 0x10]
call fcn.0048f190
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a0b69
push esi
call fcn.0048f190
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
je 0x4a0b63
call fcn.0048f190
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x4a0b6f
push eax
call fcn.00474ac5
add esp, 4
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0x2c8]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp - 0x2cc]
call fcn.0051f2c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x2c8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
jne 0x4a0c3b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 0x10]
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a0c2b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x4a0c31
push eax
mov dword [ebp - 0x2d4], 0
call fcn.00474ac5
add esp, 4
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2d4]
push 0
push ecx
push dword [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call edi
mov eax, dword [ebp - 0x2c8]
cmp dword [ebp - 0x2d4], eax
je 0x4a0c31
push dword [ebp - 0x2cc]
call fcn.00474ace
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047467d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
je 0x4a0c0d
mov edx, dword [ebp - 0x2d8]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x2dc]
mov dword [ecx], eax
mov eax, 1
jmp 0x4a0c0f
call fcn.00522e79
int3