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

Disassembly:
push 0x730
mov eax, 0x550c7f
call fcn.00514880
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4a364d
call fcn.00402160
call fcn.00483845
push eax
lea ecx, [ebp - 0x4d4]
call fcn.00480ed9
and dword [ebp - 4], esi
call fcn.004838ca
mov ecx, eax
call fcn.004816cb
test al, al
je 0x4a34e2
call fcn.0047d034
push dword [ebp + 8]
lea ecx, [ebp - 0x4d4]
call fcn.00481127
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x4d4]
call fcn.00481560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a348f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4d4]
call fcn.00481015
jmp 0x4a36d5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a347b
and dword [ebp - 0x71c], 0
push ebx
call fcn.00474ddd
pop ecx
mov esi, eax
lea eax, [ebp - 0x71c]
push 0
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x708], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x71c], ebx
je 0x4a3639
push esi
call fcn.00474de6
pop ecx
jmp 0x4a347b
and dword [ebp - 0x3e8], 0
and dword [ebp - 0x3e4], 0
and dword [ebp - 0x3e0], 0
push 0x46
pop ecx
mov esi, str.qGiTh3hcWzqSELv63uLMQ9XAerQUrlt6ZdF9atFr02u8pczasRvsrWAdqXAJUw4m5E34pKWZ2eFTcx5MWWXqcTpT3y3Sv1yTE1wJd9QD1EYNg1Fv7Wcui8c1XJyoEF0cQp4JYMWqiZon3b1wXDcbVW8cmlUENjARD3ofSCovib8J7YlkYlLfyUPSAbMPMuI6FIOgJzEvnk22aSsDymlMt8mroeIWQLC3LL0YPbdYS6DuLkTaiCYb7LjpYlEJt4qsJShRl8WX7DZBXVpzR7FmrErf
mov byte [ebp - 4], 1
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x40c]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407f90
xor eax, eax
lea ecx, [ebp - 0x40c]
inc eax
push 0
push eax
mov byte [ebp - 4], al
call fcn.00479e2e
call fcn.004838ca
push eax
lea ecx, [ebp - 0x4d4]
call fcn.0048110a
call fcn.00483c05
test al, al
je 0x4a3569
call fcn.004838d0
jmp 0x4a3581
push 2
push 0
lea ecx, [ebp - 0x4d4]
call fcn.00481560
push eax
call fcn.004a7e50
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4a3597
lea ecx, [ebp - 0x3e8]
call fcn.00479e80
jmp 0x4a347b
lea eax, [ebp - 0x704]
push eax
lea eax, [ebp - 0x714]
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.004a7891
add esp, 0x14
test eax, eax
jne 0x4a3587
mov ebx, dword [ebp - 0x4d8]
test ebx, ebx
je 0x4a3587
push ebx
call fcn.00474ddd
push 3
push ebx
mov esi, eax
mov dword [ebp - 0x708], eax
push esi
push dword [ebp - 0x714]
push edi
call fcn.004a8210
add esp, 0x18
mov dword [ebp - 0x710], eax
call fcn.00402160
mov eax, dword [ebp - 0x710]
test eax, eax
je 0x4a361e
cmp eax, 0x600
je 0x4a361e
push esi
call fcn.00474de6
pop ecx
call fcn.00483c05
test al, al
jne 0x4a3587
push edi
call fcn.004a76eb
pop ecx
jmp 0x4a3587
call fcn.00483c05
test al, al
jne 0x4a362e
push edi
call fcn.004a76eb
pop ecx
lea ecx, [ebp - 0x3e8]
call fcn.00479e80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4d4]
call fcn.00481015
jmp 0x4a36cd
call fcn.0047b215
push esi
push dword [ebp + 8]
call fcn.004837b6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a36d5
push edi
call fcn.004837b6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x714], eax
test eax, eax
jne 0x4a3688
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a36d5
call fcn.00402160
push edi
call fcn.004837b6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4a36d5
push ebx
call fcn.00474ddd
pop ecx
push ebx
push dword [ebp - 0x714]
mov esi, eax
mov dword [ebp - 0x708], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004f0f60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x4a37e1
call fcn.00402160
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x718], eax
cmp eax, 0xffffffff
je 0x4a3bb2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a3bb2
xor edi, edi
push ebx
mov dword [ebp - 0x710], edi
call fcn.00474ddd
pop ecx
mov dword [ebp - 0x708], eax
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x3e4], edi
mov dword [ebp - 0x3e0], edi
push 0x66
pop ecx
mov esi, str.Vxe5nBzyU9i2hS2CO3leLGRXsgrxax3eF9TtSZ7l65vRHeD3W9wnjSI7gDF63rM2LZPO67IAuh459AZOuMehnvhlCL6VTs7kpeUm3OqgH7kv6FaCe5WPmT68tirvnsY7D5uZDc1YPoXpJi40UMfEyrgaTxij6IsbTD8O5rDx6X5MVRfjkdd7E84kAijo6dFptoeIbrukDsqtEvSAkR6T8mTATsdWEmraYPI6dYI0o62tFfh7Nm2UgiXwmCvs8NosOnA1DsWd3cCgVKkjrXFHJlUwBsFRNHSwtY6gdS4kET4pSvuxq853aUi4mRhjHjotKvZPMS2SPwa31ibVjDNjGObncC9p7gQKgphviRbt9Lry9S5c8HQl3bkBFT2UWjScFbsjDChkaRH8jaOJbHRIPY5QV
mov dword [ebp - 4], 3
lea edi, [ebp - 0x3dc]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3dc]
push eax
lea ecx, [ebp - 0x40c]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407f90
push 0
push 1
lea ecx, [ebp - 0x40c]
call fcn.00479e2e
mov esi, dword [ebp - 0x708]
lea eax, [ebp - 0x710]
mov edi, dword [ebp - 0x718]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x710], ebx
je 0x4a37ca
push esi
call fcn.00474de6
xor esi, esi
pop ecx
mov dword [ebp - 0x708], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e8]
call fcn.00479e80
test esi, esi
je 0x4a3bb2
xor eax, eax
mov dword [ebp - 0x720], eax
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x3f8], eax
push 0x45
pop ecx
mov esi, str.5obsHLEEFYNmOIvt7TZCTlPju7O0W7DrWMRrNge0e82pDYeTBsE1NF9gzIWuOq1LHBAJ1KKDBtzHsrA12ymS8uyMQfP3adta5htaQCiIHD81WnUy3k3QXsXWpDFNT2Q7luPhJm61Nvx3Z2XRa54TghMW5Idfqo36Dk1PLGkamZDbQZjVrTmTa9sxqKgh5nhUSTRqlni9tlrdXuBpJus4wLnZObSWTTXdn4osrX5BUBmR55UEM1LgljpvZVicnYVsXTh2IILUv3g60TbpcvT
mov dword [ebp - 4], 5
lea edi, [ebp - 0x240]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.004057d0
lea eax, [ebp - 0x3f4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x400]
call fcn.00407f90
push 0
push 1
lea ecx, [ebp - 0x3f4]
mov byte [ebp - 4], 5
call fcn.00479e2e
push 0x1c
call fcn.00474d5d
pop ecx
mov dword [ebp - 0x724], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4a3874
mov ecx, eax
call fcn.00481c44
mov edi, eax
mov dword [ebp - 0x718], eax
jmp 0x4a387c
xor edi, edi
mov dword [ebp - 0x718], edi
mov esi, dword [ebp - 0x708]
lea eax, [ebp - 0x738]
push 4
push eax
lea eax, [ebp - 0x720]
mov byte [ebp - 4], 5
push eax
push ebx
push esi
call fcn.004c8935
mov ebx, eax
push esi
mov dword [ebp - 0x724], ebx
call fcn.00474de6
and dword [ebp - 0x71c], 0
add esp, 0x18
cmp dword [ebp - 0x720], 0
jle 0x4a3b9c
lea eax, [ebx + 8]
mov dword [ebp - 0x714], eax
mov ebx, dword [eax - 8]
mov esi, dword [eax - 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x730], esi
mov dword [ebp - 0x710], ecx
mov dword [ebp - 0x734], eax
test ebx, ebx
jne 0x4a38f8
push ebx
call fcn.004cc83f
pop ecx
jmp 0x4a3b6e
push 0x2c
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.004f14e0
mov eax, dword [ebp - 0x710]
add esp, 0xc
mov edi, dword [ebp - 0x710]
neg eax
mov dword [ebp - 0x430], eax
xor edx, edx
xor eax, eax
imul edi, esi
inc eax
mov dword [ebp - 0x438], 0x28
push 0x20
mov word [ebp - 0x42c], ax
pop eax
mov word [ebp - 0x42a], ax
mov eax, edi
push edx
shl eax, 2
push edx
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x708]
push eax
push edx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x434], esi
push eax
push edx
mov dword [ebp - 0x428], edx
mov byte [ebp - 0x709], dl
mov dword [ebp - 0x708], edx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x72c], eax
test eax, eax
jne 0x4a3999
push ebx
call fcn.004cc83f
mov edi, dword [ebp - 0x718]
pop ecx
jmp 0x4a3b6e
call fcn.0047bb76
xor edx, edx
mov esi, edx
test edi, edi
jle 0x4a3a8e
xor eax, eax
inc eax
mov byte [ebp - 0x709], al
mov eax, dword [ebp - 0x708]
mov cl, byte [ebx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, 0xff
mov ecx, dword [ebp - 0x708]
cmp byte [ecx + esi*4 + 3], al
jae 0x4a3a34
movzx ecx, byte [ebx + esi*4 + 3]
xor edx, edx
movzx eax, byte [ebx + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x708]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x708]
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x708]
xor edx, edx
mov byte [ecx + esi*4 + 2], al
jmp 0x4a3a56
mov al, byte [ebx + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0x708]
mov cl, byte [ebx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x708]
mov cl, byte [ebx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x708]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x4a3a85
mov byte [eax + esi*4], dl
mov eax, dword [ebp - 0x708]
mov byte [eax + esi*4 + 1], dl
mov eax, dword [ebp - 0x708]
mov byte [eax + esi*4 + 2], dl
mov eax, dword [ebp - 0x708]
mov byte [eax + esi*4 + 3], dl
inc esi
cmp esi, edi
jl 0x4a39b3
mov dword [ebp - 0x3e8], edx
mov dword [ebp - 0x3e4], edx
mov dword [ebp - 0x3e0], edx
push 0x3c
pop ecx
mov esi, str.Z9nAZDUtk9bBLt2mFIxkmyFmMyJi7xqBcqT8UpgKrgHC7iOAofhHbkp5Ckjs2VkBKnTSnq3kSuWqjOW4VQHJPGn84INKrcYgXCVKTDx10X638IY6rjO5BsUyhY1gLp9i6potS2KJEFZbP2rvS7B1MWFtN2SZEgtRkXhEdnHDtBCLmMM6NEAbaUaWxmD0RyObs29Mdi3XNjdXPugm78IrCIg0aUkHng0apCTISfeyNlkD3sKDF
mov byte [ebp - 4], 8
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x450]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407f90
xor eax, eax
mov byte [ebp - 4], 8
push 0
inc eax
lea ecx, [ebp - 0x450]
push eax
call fcn.00479e2e
push 0x9c
call fcn.00474d5d
mov esi, eax
pop ecx
mov dword [ebp - 0x73c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4a3b18
lea ecx, [esi + 0x14]
call fcn.00480f22
jmp 0x4a3b1a
xor esi, esi
mov eax, dword [ebp - 0x72c]
mov ecx, dword [ebp - 0x710]
mov edi, dword [ebp - 0x718]
mov dword [esi], eax
mov eax, dword [ebp - 0x730]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x734]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 0x709]
mov dword [esi + 8], ecx
mov ecx, edi
push esi
mov byte [ebp - 4], 8
mov byte [esi + 0x10], al
call fcn.00482885
push ebx
call fcn.004cc83f
pop ecx
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 5
call fcn.00479e80
mov ecx, dword [ebp - 0x71c]
mov eax, dword [ebp - 0x714]
inc ecx
add eax, 0x10
mov dword [ebp - 0x71c], ecx
mov dword [ebp - 0x714], eax
cmp ecx, dword [ebp - 0x720]
jl 0x4a38cb
mov ebx, dword [ebp - 0x724]
push ebx
call fcn.004cc83f
pop ecx
lea ecx, [ebp - 0x400]
call fcn.00479e80
mov eax, edi
jmp 0x4a3bb4
xor eax, eax
call fcn.0051483b
ret