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

Disassembly:
push 0x490
mov eax, 0x59fc00
call fcn.00495539
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x424e45
push 0x62c448
lea eax, [ebp - 0x190]
call fcn.00414f94
mov dword [ebp - 4], ebx
mov eax, dword [0x62c598]
cmp word [eax], bx
jne 0x424d6f
cmp dword [ebp + 8], ebx
je 0x424ce0
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x190]
call fcn.00414fc9
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x484], eax
cmp eax, 0xffffffff
jne 0x424d1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00414fb8
jmp 0x424ec3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x424d07
push esi
mov dword [ebp - 0x488], ebx
call fcn.0048b666
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x488]
push eax
push esi
push edi
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x488], esi
je 0x424e34
push edi
call fcn.0048d15f
pop ecx
jmp 0x424d07
mov ebx, eax
lea esi, [ebp - 0x190]
call fcn.00414fc9
cmp byte [0x6356b8], 0
je 0x424d8d
mov ebx, dword [0x6356bc]
jmp 0x424da1
push 2
push 0
push dword [ebp - 0x190]
call fcn.00421799
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x424dbb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00414fb8
xor ebx, ebx
jmp 0x424ec3
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x48c]
push eax
mov ecx, ebx
call fcn.004217f5
pop ecx
pop ecx
test eax, eax
jne 0x424da5
mov esi, dword [ebp - 0x24c]
test esi, esi
je 0x424da5
push esi
call fcn.0048b666
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp - 0x48c]
mov eax, ebx
call fcn.004218c6
add esp, 0xc
test eax, eax
je 0x424e22
cmp eax, 0x600
je 0x424e22
push edi
call fcn.0048d15f
cmp byte [0x6356b8], 0
pop ecx
jne 0x424da5
push ebx
call fcn.004218fa
pop ecx
jmp 0x424da5
cmp byte [0x6356b8], 0
jne 0x424e32
push ebx
call fcn.004218fa
pop ecx
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00414fb8
jmp 0x424ebf
push eax
push dword [ebp + 8]
call fcn.0041238a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x490], esi
cmp esi, ebx
je 0x424ec3
push esi
call fcn.0041238a
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48c], eax
push esi
cmp eax, ebx
jne 0x424e81
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x424ec3
call fcn.0041238a
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x424ec3
push esi
call fcn.0048b666
pop ecx
push esi
push dword [ebp - 0x48c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.0048b960
add esp, 0xc
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x424f42
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x484], eax
cmp eax, 0xffffffff
je 0x424f3b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x424f3b
push esi
mov dword [ebp - 0x490], ebx
call fcn.0048b666
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x490]
push eax
push esi
push edi
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x490], esi
je 0x424f37
push edi
call fcn.0048d15f
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x424f42
xor eax, eax
jmp 0x42515f
lea eax, [ebp - 0x48c]
push eax
add esi, edi
lea eax, [ebp - 0x498]
lea ecx, [ebp - 0x484]
lea edx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x19c], esi
call fcn.0043e4df
pop ecx
push edi
mov dword [ebp - 0x494], eax
call fcn.0048d15f
pop ecx
cmp dword [ebp - 0x494], ebx
je 0x424f3b
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0048cf80
mov esi, dword [ebp - 0x48c]
mov eax, dword [ebp - 0x484]
neg eax
mov dword [ebp - 0x34], eax
add esp, 0xc
xor eax, eax
mov edi, esi
imul edi, dword [ebp - 0x484]
inc eax
push 0x20
mov word [ebp - 0x30], ax
pop eax
mov word [ebp - 0x2e], ax
push ebx
mov eax, edi
shl eax, 2
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x480]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x49c], edi
mov byte [ebp - 0x479], bl
mov dword [ebp - 0x480], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x498], eax
cmp eax, ebx
je 0x424f3b
mov dword [ebp - 0x488], ebx
cmp edi, ebx
jle 0x425117
mov ecx, dword [ebp - 0x488]
mov eax, dword [ebp - 0x494]
mov edx, dword [ebp - 0x480]
shl ecx, 2
lea esi, [eax + ecx + 3]
mov al, byte [esi]
mov byte [ecx + edx + 3], al
mov eax, dword [ebp - 0x480]
add eax, ecx
cmp byte [eax + 3], 0xff
mov dword [ebp - 0x490], eax
jae 0x4250aa
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
mov edx, dword [ebp - 0x490]
mov byte [ebp - 0x479], 1
mov byte [edx], al
movzx edx, byte [esi]
movzx eax, byte [esi - 2]
imul eax, edx
xor edx, edx
div edi
mov edx, dword [ebp - 0x480]
mov byte [ecx + edx + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
mov esi, edi
mov edi, dword [ebp - 0x49c]
xor edx, edx
div esi
jmp 0x4250bf
mov dl, byte [esi - 1]
mov byte [eax], dl
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x480]
mov byte [ecx + edx + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x480]
mov byte [ecx + edx + 2], al
mov eax, dword [ebp - 0x480]
mov edx, dword [eax + ecx]
cmp edx, dword [ebp + 0x10]
jne 0x4250ff
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x480]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 0x480]
mov byte [ecx + eax + 2], bl
mov eax, dword [ebp - 0x480]
mov byte [ecx + eax + 3], bl
mov byte [ebp - 0x479], 1
inc dword [ebp - 0x488]
cmp dword [ebp - 0x488], edi
jl 0x425025
mov esi, dword [ebp - 0x48c]
push dword [ebp - 0x494]
call fcn.0048ce68
mov dword [esp], 0x160
call fcn.0048bf08
pop ecx
cmp eax, ebx
je 0x425140
lea ecx, [eax + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov word [ecx], dx
mov ebx, eax
mov eax, dword [ebp - 0x498]
mov dword [ebx], eax
mov eax, dword [ebp - 0x484]
mov dword [ebx + 8], eax
mov al, byte [ebp - 0x479]
mov byte [ebx + 0xc], al
mov dword [ebx + 4], esi
mov eax, ebx
call fcn.00495583
ret