Function at 0x44e5eb
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 0x38
mov eax, 0x509ad7
call fcn.0049dfed
mov ecx, dword [ebp + 0x2a8]
mov edx, dword [ebp + 0x2ac]
mov eax, dword [ebp + 0x2b4]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
cmp ecx, ebx
je 0x44e8ce
cmp edx, ebx
je 0x44e8ce
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x44e7de
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 0x44e707
push dword [ebp + 0x2b0]
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 0x44e6be
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x218]
call fcn.00442e9d
jmp 0x44e845
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x44e6ab
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00499a0f
pop ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 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 - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x44e730
push dword [ebp - 0x10]
call fcn.0049ac10
pop ecx
mov dword [ebp - 0x10], ebx
jmp 0x44e6ab
call fcn.0043ef18
push eax
lea ecx, [ebp + 0x218]
call fcn.0044302f
call fcn.0043ef1e
test al, al
je 0x44e7b7
call fcn.0043ef24
mov esi, eax
cmp esi, ebx
jne 0x44e739
or dword [ebp - 4], 0xffffffff
jmp 0x44e6ae
push dword [ebp + 0x2b0]
lea ecx, [ebp - 0x44]
call fcn.00401685
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
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 - 0x44]
mov byte [ebp - 0x15], al
mov byte [ebp - 4], bl
call fcn.0040184d
cmp byte [ebp - 0x15], bl
jne 0x44e730
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x44e730
push eax
call fcn.00499a0f
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push eax
push dword [ebp - 0x1c]
push esi
call fcn.00487152
add esp, 0x14
test eax, eax
jne 0x44e730
push dword [ebp - 0x10]
call fcn.0049a490
pop ecx
mov dword [ebp - 0x10], ebx
jmp 0x44e730
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x2b0]
lea ecx, [ebp + 0x218]
call fcn.00442fe7
push eax
call fcn.0047a9cc
add esp, 0x10
jmp 0x44e730
push eax
push dword [ebp + 0x2b0]
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x44e845
push esi
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
cmp edi, ebx
je 0x44e83f
call fcn.0043ef03
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x44e845
push eax
call fcn.00499a0f
pop ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp - 0x10]
call fcn.0049d7c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x10], ebx
jne 0x44e8b9
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 0x2b0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e8b4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x44e8b4
push eax
mov dword [ebp - 0x20], ebx
call fcn.00499a0f
pop ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 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 - 0x14]
je 0x44e8b4
push dword [ebp - 0x10]
call fcn.0049ac10
pop ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x44e8ce
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x44e8d0
xor eax, eax
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