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

Disassembly:
push 0x490
mov eax, 0x59dd9b
call fcn.00493819
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x41b56b
push 0x629448
lea eax, [ebp - 0x190]
call fcn.00415e88
mov dword [ebp - 4], ebx
mov eax, dword [0x629598]
cmp word [eax], bx
jne 0x41b495
cmp dword [ebp + 8], ebx
je 0x41b406
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x190]
call fcn.00415ebd
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 0x41b441
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00415eac
jmp 0x41b5e9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x41b42d
push esi
mov dword [ebp - 0x488], ebx
call fcn.00489adb
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 0x41b55a
push edi
call fcn.0048b5cf
pop ecx
jmp 0x41b42d
mov ebx, eax
lea esi, [ebp - 0x190]
call fcn.00415ebd
cmp byte [0x6324d8], 0
je 0x41b4b3
mov ebx, dword [0x6324dc]
jmp 0x41b4c7
push 2
push 0
push dword [ebp - 0x190]
call fcn.00429b83
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x41b4e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00415eac
xor ebx, ebx
jmp 0x41b5e9
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x48c]
push eax
mov ecx, ebx
call fcn.00429bdf
pop ecx
pop ecx
test eax, eax
jne 0x41b4cb
mov esi, dword [ebp - 0x24c]
test esi, esi
je 0x41b4cb
push esi
call fcn.00489adb
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp - 0x48c]
mov eax, ebx
call fcn.00429cb0
add esp, 0xc
test eax, eax
je 0x41b548
cmp eax, 0x600
je 0x41b548
push edi
call fcn.0048b5cf
cmp byte [0x6324d8], 0
pop ecx
jne 0x41b4cb
push ebx
call fcn.00429ce4
pop ecx
jmp 0x41b4cb
cmp byte [0x6324d8], 0
jne 0x41b558
push ebx
call fcn.00429ce4
pop ecx
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00415eac
jmp 0x41b5e5
push eax
push dword [ebp + 8]
call fcn.0041327e
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x490], esi
cmp esi, ebx
je 0x41b5e9
push esi
call fcn.0041327e
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48c], eax
push esi
cmp eax, ebx
jne 0x41b5a7
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x41b5e9
call fcn.0041327e
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x41b5e9
push esi
call fcn.00489adb
pop ecx
push esi
push dword [ebp - 0x48c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00489dd0
add esp, 0xc
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x41b668
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 0x41b661
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x41b661
push esi
mov dword [ebp - 0x490], ebx
call fcn.00489adb
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 0x41b65d
push edi
call fcn.0048b5cf
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x41b668
xor eax, eax
jmp 0x41b885
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.0042c3a6
pop ecx
push edi
mov dword [ebp - 0x494], eax
call fcn.0048b5cf
pop ecx
cmp dword [ebp - 0x494], ebx
je 0x41b661
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0048b3f0
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 0x41b661
mov dword [ebp - 0x488], ebx
cmp edi, ebx
jle 0x41b83d
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 0x41b7d0
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 0x41b7e5
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 0x41b825
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 0x41b74b
mov esi, dword [ebp - 0x48c]
push dword [ebp - 0x494]
call fcn.0048b2d8
mov dword [esp], 0x160
call fcn.0048a378
pop ecx
cmp eax, ebx
je 0x41b866
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.00493863
ret