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

Disassembly:
push 0x410
mov eax, 0x44d22b
call fcn.0043dcde
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x42d5e7
call fcn.004150af
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041200d
or edi, 0xffffffff
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], ebx
call fcn.00411fe9
mov byte [ebp - 4], 1
call fcn.004150b5
mov ecx, eax
call fcn.00411a59
test al, al
jne 0x42d4d8
push ebx
lea ecx, [ebp - 0x144]
call fcn.00411a82
cmp ax, 0x40
je 0x42d4d8
call fcn.004150b5
push eax
lea ecx, [ebp - 0xc0]
call fcn.00411ac8
call fcn.004150bb
test al, al
je 0x42d3f6
call fcn.004150c1
jmp 0x42d40d
push 2
push ebx
lea ecx, [ebp - 0xc0]
call fcn.004118d8
push eax
call fcn.00427d74
add esp, 0xc
mov dword [ebp - 0x400], eax
cmp eax, ebx
je 0x42d55e
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 0x400]
call fcn.0042648c
add esp, 0x14
test eax, eax
jne 0x42d55e
mov esi, dword [ebp - 0x1cc]
cmp esi, ebx
je 0x42d55e
push esi
call fcn.0043b998
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x410]
push dword [ebp - 0x400]
call fcn.00427dd2
add esp, 0x18
cmp eax, ebx
je 0x42d4a1
cmp eax, 0x600
je 0x42d4a1
push edi
call fcn.0043ce7b
pop ecx
call fcn.004150bb
test al, al
jne 0x42d5d3
push dword [ebp - 0x400]
call fcn.00427e0a
jmp 0x42d5d2
call fcn.004150bb
test al, al
jne 0x42d4b6
push dword [ebp - 0x400]
call fcn.00427e0a
pop ecx
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], bl
call fcn.0041192e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041192e
jmp 0x42d66c
push ebx
lea ecx, [ebp - 0x144]
call fcn.00411a82
cmp ax, 0x40
jne 0x42d520
push edi
push 1
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x144]
call fcn.004120a4
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00411a92
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 1
call fcn.0041192e
jmp 0x42d532
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00411ac8
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_4
lea ecx, [ebp - 0xc0]
call fcn.004118d8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x408], eax
cmp eax, edi
jne 0x42d581
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], bl
call fcn.0041192e
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xc0]
call fcn.0041192e
xor eax, eax
jmp 0x42d879
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x42d55e
push esi
mov dword [ebp - 0x400], ebx
call fcn.0043b998
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x400]
push eax
push esi
push edi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x400], esi
je 0x42d4b6
push edi
call fcn.0043ce7b
pop ecx
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], bl
call fcn.0041192e
or dword [ebp - 4], 0xffffffff
jmp 0x42d56f
push eax
push dword [ebp + 8]
call fcn.004150a0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x408], esi
cmp esi, ebx
je 0x42d57a
push esi
call fcn.004150a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x410], eax
push esi
cmp eax, ebx
jne 0x42d62a
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42d57a
call fcn.004150a0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x42d57a
push esi
call fcn.0043b998
pop ecx
push esi
push dword [ebp - 0x410]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.0043d530
add esp, 0xc
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 4
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push edi
call fcn.0043b763
push edi
mov dword [ebp - 0x408], eax
call fcn.0043ce7b
add esp, 0x1c
cmp dword [ebp - 0x408], ebx
je 0x42d57a
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0043d4b0
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0x40c]
add esp, 0xc
neg ecx
mov dword [ebp - 0x34], ecx
push 0x20
xor ecx, ecx
inc ecx
mov word [ebp - 0x30], cx
pop ecx
push ebx
shl eax, 2
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x404]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], 0x28
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3f9], bl
mov dword [ebp - 0x404], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x418], eax
cmp eax, ebx
je 0x42d57a
mov eax, dword [ebp - 0x414]
imul eax, dword [ebp - 0x40c]
mov dword [ebp - 0x400], ebx
test eax, eax
jle 0x42d820
mov ecx, dword [ebp - 0x400]
mov eax, dword [ebp - 0x408]
mov edx, dword [ebp - 0x404]
lea esi, [eax + ecx*4 + 3]
mov al, byte [esi]
mov byte [edx + ecx*4 + 3], al
mov eax, dword [ebp - 0x404]
lea edi, [eax + ecx*4]
cmp byte [edi + 3], 0xff
jae 0x42d7ac
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov ebx, 0xff
div ebx
mov byte [ebp - 0x3f9], 1
mov byte [edi], al
movzx edx, byte [esi]
movzx eax, byte [esi - 2]
imul eax, edx
xor edx, edx
mov edi, ebx
div edi
mov edx, dword [ebp - 0x404]
mov byte [edx + ecx*4 + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
xor edx, edx
mov esi, ebx
div esi
xor ebx, ebx
jmp 0x42d7c1
mov al, byte [esi - 1]
mov byte [edi], al
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x404]
mov byte [edx + ecx*4 + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x404]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [ebp - 0x404]
mov edx, dword [eax + ecx*4]
cmp edx, dword [ebp + 0x10]
jne 0x42d801
mov byte [eax + ecx*4], bl
mov eax, dword [ebp - 0x404]
mov byte [eax + ecx*4 + 1], bl
mov eax, dword [ebp - 0x404]
mov byte [eax + ecx*4 + 2], bl
mov eax, dword [ebp - 0x404]
mov byte [eax + ecx*4 + 3], bl
mov byte [ebp - 0x3f9], 1
mov eax, dword [ebp - 0x414]
imul eax, dword [ebp - 0x40c]
inc dword [ebp - 0x400]
cmp dword [ebp - 0x400], eax
jl 0x42d737
push dword [ebp - 0x408]
call fcn.004356bc
push 0x98
call fcn.0043d0c0
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x410], esi
mov dword [ebp - 4], 3
cmp esi, ebx
je 0x42d854
lea ecx, [esi + 0x10]
call fcn.00411906
mov ebx, esi
mov eax, dword [ebp - 0x418]
mov dword [ebx], eax
mov eax, dword [ebp - 0x414]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x40c]
mov dword [ebx + 8], eax
mov al, byte [ebp - 0x3f9]
mov byte [ebx + 0xc], al
mov eax, ebx
call fcn.0043dd28
ret