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

Disassembly:
push ebp
sub esp, 0x29c
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x29c], eax
push 0x78
mov eax, 0x509a99
call fcn.0049dfed
mov eax, dword [ebp + 0x2ac]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
jne 0x44e343
call fcn.0043ef12
push eax
lea ecx, [ebp + 0x218]
call fcn.004431f5
mov dword [ebp - 4], ebx
call fcn.0043ef18
mov ecx, eax
call fcn.00442fbc
test al, al
je 0x44e263
push dword [ebp + 0x2a8]
lea ecx, [ebp + 0x218]
call fcn.00443043
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea ecx, [ebp + 0x218]
call fcn.00442fe7
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x44e21a
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x218]
call fcn.00442e9d
jmp 0x44e3aa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x44e207
push eax
mov dword [ebp - 0x20], ebx
call fcn.00499a0f
pop ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
je 0x44e28c
push dword [ebp - 0x14]
call fcn.0049ac10
pop ecx
mov dword [ebp - 0x14], ebx
jmp 0x44e207
call fcn.0043ef18
push eax
lea ecx, [ebp + 0x218]
call fcn.0044302f
call fcn.0043ef1e
test al, al
je 0x44e31c
call fcn.0043ef24
mov esi, eax
cmp esi, ebx
jne 0x44e295
or dword [ebp - 4], 0xffffffff
jmp 0x44e20a
push dword [ebp + 0x2a8]
lea ecx, [ebp - 0x84]
call fcn.00401685
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00487dea
add esp, 0x10
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.0040184d
cmp byte [ebp - 0xd], bl
jne 0x44e28c
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x44e28c
push eax
call fcn.00499a0f
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x20]
push esi
call fcn.00487152
add esp, 0x14
test eax, eax
jne 0x44e28c
push dword [ebp - 0x14]
call fcn.0049a490
pop ecx
mov dword [ebp - 0x14], ebx
jmp 0x44e28c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x2a8]
lea ecx, [ebp + 0x218]
call fcn.00442fe7
push eax
call fcn.0047a9cc
add esp, 0x10
jmp 0x44e28c
push eax
push dword [ebp + 0x2a8]
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x44e3aa
push esi
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
cmp edi, ebx
je 0x44e3a4
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x44e3aa
push eax
call fcn.00499a0f
pop ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp - 0x14]
call fcn.0049d7c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x14], ebx
jne 0x44e425
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 0x2a8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e419
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x44e419
push eax
mov dword [ebp - 0x2c], ebx
call fcn.00499a0f
pop ecx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x18]
je 0x44e419
push dword [ebp - 0x14]
call fcn.0049ac10
pop ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jne 0x44e425
xor eax, eax
jmp 0x44e5c8
push 4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0048f7e4
push dword [ebp - 0x14]
mov esi, eax
mov dword [ebp - 0x30], esi
call fcn.0049ac10
add esp, 0x1c
cmp esi, ebx
je 0x44e41e
push 0x2c
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0049d740
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
imul eax, dword [ebp - 0x24]
add esp, 0xc
neg ecx
mov dword [ebp - 0x60], ecx
push 0x20
xor ecx, ecx
inc ecx
mov word [ebp - 0x5c], cx
pop ecx
push ebx
shl eax, 2
push ebx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x68], 0x28
mov word [ebp - 0x5a], cx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x44e41e
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
test eax, eax
jle 0x44e581
add esi, 3
mov ecx, dword [ebp - 0x20]
mov al, byte [esi]
mov edx, dword [ebp - 0x1c]
shl ecx, 2
mov byte [ecx + edx + 3], al
mov eax, dword [ebp - 0x1c]
lea edi, [ecx + eax]
cmp byte [edi + 3], 0xff
mov dword [ebp - 0x38], edi
jae 0x44e528
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
mov edx, dword [ebp - 0x38]
mov byte [ebp - 0xd], 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 - 0x1c]
mov byte [ecx + edx + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
xor edx, edx
div edi
jmp 0x44e53a
mov al, byte [esi - 1]
mov byte [edi], al
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx + 2], al
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0x2b0]
jne 0x44e56b
mov byte [eax], bl
mov eax, dword [ebp - 0x1c]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 0x1c]
mov byte [ecx + eax + 2], bl
mov eax, dword [ebp - 0x1c]
mov byte [ecx + eax + 3], bl
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x24]
inc dword [ebp - 0x20]
add esi, 4
cmp dword [ebp - 0x20], eax
jl 0x44e4c9
push dword [ebp - 0x30]
call fcn.00488e8e
push 0x98
call fcn.0049ad2e
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x44e5af
lea ecx, [esi + 0x10]
call fcn.00442e78
mov ebx, esi
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 8], eax
mov al, byte [ebp - 0xd]
mov byte [ebx + 0xc], al
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x29c]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x2a0
leave
ret