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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492298
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x4b04dc]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x442dd5
mov ecx, dword [0x4b3d18]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], bl
mov edi, ecx
cmp ecx, ebx
jne 0x442b55
mov edi, 0x497892
mov ecx, edi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x442b60
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x442b83
lea eax, [esi + 1]
push eax
push ebx
mov dword [ebp - 0x58], ebx
call fcn.004770e6
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.0047792b
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + ecx], bl
mov dword [ebp - 4], ebx
mov eax, dword [0x4b3d60]
cmp byte [eax], 0
jne 0x442c8b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x442bb5
push eax
lea eax, [ebp - 0x58]
call fcn.004542b0
mov edx, dword [ebp - 0x58]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x442bf7
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x442e50
push eax
call fcn.00476c90
add esp, 4
jmp 0x442e50
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x442c25
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
cmp eax, edx
je 0x442e50
push eax
call fcn.00476c90
add esp, 4
jmp 0x442e50
push edi
mov dword [ebp - 0x1c8], 0
call fcn.00475963
add esp, 4
push 0
mov ebx, eax
lea eax, [ebp - 0x1c8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c8], edi
je 0x442db9
push ebx
call fcn.00476676
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x442e50
push eax
call fcn.00476c90
add esp, 4
jmp 0x442e50
push eax
lea eax, [ebp - 0x58]
call fcn.004542b0
cmp byte [0x4b60e0], 0
je 0x442cab
mov esi, dword [0x4b60e4]
mov dword [ebp - 0x1c8], esi
jmp 0x442cc2
mov edx, dword [ebp - 0x58]
push 2
push ebx
push edx
call fcn.00459750
add esp, 0xc
mov dword [ebp - 0x1c8], eax
mov esi, eax
cmp esi, ebx
je 0x442c68
cmp dword [esi], 1
je 0x442cd7
mov dword [0x4b60f8], 0x80000
jmp 0x442c68
mov ebx, dword [esi + 4]
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1c4]
push eax
mov eax, dword [ebp + 8]
call fcn.00459570
mov dword [0x4b60f8], eax
test eax, eax
jne 0x442c68
mov edi, dword [ebp - 0x90]
test edi, edi
jne 0x442d1b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
cmp eax, edx
jmp 0x442c77
push edi
call fcn.00475963
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x442d37
mov dword [0x4b60f8], 0x80000
jmp 0x442d58
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [esi + 4]
push edi
push ebx
push eax
call fcn.00459600
mov dword [0x4b60f8], eax
test eax, eax
je 0x442d7a
cmp eax, 0x600
je 0x442d7a
push ebx
call fcn.00476676
add esp, 4
cmp byte [0x4b60e0], 0
jne 0x442c68
mov edi, esi
call fcn.00459800
jmp 0x442c68
cmp byte [0x4b60e0], 0
jne 0x442db9
cmp dword [esi], 1
je 0x442d94
mov dword [0x4b60f8], 0x80000
jmp 0x442db9
mov esi, dword [esi + 4]
call fcn.004596f0
push esi
mov dword [0x4b60f8], eax
call fcn.0047659a
mov edx, dword [ebp - 0x1c8]
add esp, 4
push edx
call fcn.0047659a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x442e48
push eax
call fcn.00476c90
add esp, 4
jmp 0x442e48
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.0043ccc0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x442e50
push esi
call fcn.0043ccc0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c4], eax
push esi
cmp eax, ebx
jne 0x442e0c
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x442e50
call fcn.0043ccc0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x442e50
push edi
call fcn.00475963
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x1c4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.0047b540
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x442ed3
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x442ecc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x442ecc
push edi
mov dword [ebp - 0x1cc], 0
call fcn.00475963
add esp, 4
push 0
lea edx, [ebp - 0x1cc]
push edx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1cc], edi
je 0x442ec8
push ebx
call fcn.00476676
add esp, 4
xor eax, eax
jmp 0x4430ed
test ebx, ebx
jne 0x442ed3
xor eax, eax
jmp 0x4430ed
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
add edi, ebx
lea eax, [ebp - 0x1d4]
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], edi
call fcn.0044a430
push ebx
mov esi, eax
call fcn.00476676
add esp, 0xc
test esi, esi
je 0x442ecc
push 0x2c
lea edx, [ebp - 0x84]
push 0
push edx
call fcn.00480950
mov edi, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1c4]
add esp, 0xc
push 0
mov ebx, edi
imul ebx, eax
push 0
mov ecx, eax
neg ecx
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - 0x7c], ecx
push 0
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebx*4]
push 0
mov dword [ebp - 0x84], 0x28
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0x200001
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], edx
mov byte [ebp - 0x1b9], 0
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x1cc], eax
test eax, eax
je 0x442ecc
xor ecx, ecx
test ebx, ebx
jle 0x4430ac
mov eax, dword [ebp - 0x1c0]
mov edi, edi
mov dl, byte [esi + ecx*4 + 3]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [ebp - 0x1c0]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x443039
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 2]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 1]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [ebp - 0x1c0]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [ebp - 0x1c0]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov byte [ebp - 0x1b9], 1
jmp 0x44305d
mov dl, byte [esi + ecx*4 + 2]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 1]
mov edx, dword [ebp - 0x1c0]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi + ecx*4]
mov edx, dword [ebp - 0x1c0]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [ebp - 0x1c0]
mov edx, dword [ebp + 0x10]
cmp dword [eax + ecx*4], edx
jne 0x44309d
mov byte [eax + ecx*4], 0
mov eax, dword [ebp - 0x1c0]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [ebp - 0x1c0]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [ebp - 0x1c0]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [ebp - 0x1c0]
mov byte [ebp - 0x1b9], 1
inc ecx
cmp ecx, ebx
jl 0x442fc0
mov edi, dword [ebp - 0x1d0]
push esi
call fcn.00476c90
add esp, 4
push 0x58
call fcn.004765f6
add esp, 4
test eax, eax
je 0x4430ce
lea ecx, [eax + 0x14]
mov dword [eax + 0x10], ecx
mov byte [ecx], 0
jmp 0x4430d0
xor eax, eax
mov ecx, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0x1c4]
mov dword [eax], ecx
mov cl, byte [ebp - 0x1b9]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
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.00475dcc
mov esp, ebp
pop ebp
ret