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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45e9a1
mov edx, dword [0x4f5cc8]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
xor ecx, ecx
or edi, 0xffffffff
push edx
mov eax, edi
lea esi, [ebp - 0xcc]
mov word [ebp - 0xc8], cx
call fcn.00451c40
mov dword [ebp - 4], 0
mov eax, dword [0x4f5d50]
cmp word [eax], 0
jne 0x45e854
mov eax, dword [ebp + 8]
test eax, eax
je 0x45e76a
push eax
mov ebx, esi
call fcn.00451af0
mov eax, dword [ebp - 0xcc]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x45e7b4
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
cmp eax, ecx
je 0x45ea1c
push eax
call fcn.0049c78c
add esp, 4
jmp 0x45ea1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x45e7e8
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
cmp eax, edx
je 0x45ea1c
push eax
call fcn.0049c78c
add esp, 4
jmp 0x45ea1c
push ebx
mov dword [ebp - 0x3c4], 0
call fcn.0049c139
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x3c4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c4], ebx
je 0x45e97f
push edi
call fcn.0049ca2e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
add esp, 4
cmp eax, ecx
je 0x45ea1c
push eax
call fcn.0049c78c
add esp, 4
jmp 0x45ea1c
push eax
lea ebx, [ebp - 0xcc]
call fcn.00451af0
cmp byte [0x4f966f], 0
je 0x45e877
mov esi, dword [0x4f9ab0]
mov dword [ebp - 0x3c4], esi
jmp 0x45e895
mov edx, dword [ebp - 0xcc]
push 0
push edx
mov ebx, 2
call fcn.0046c8b0
add esp, 8
mov dword [ebp - 0x3c4], eax
mov esi, eax
test esi, esi
je 0x45e78f
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x3b4]
push edx
push esi
lea edx, [ebp - 0x3c0]
call fcn.0046c920
add esp, 8
test eax, eax
jne 0x45e78f
mov ebx, dword [ebp - 0x188]
test ebx, ebx
jne 0x45e8de
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
cmp eax, edx
jmp 0x45e7a0
push ebx
call fcn.0049c139
add esp, 4
cmp dword [esi], 1
mov edi, eax
je 0x45e8fa
mov dword [0x4f9c9c], 0x80000
jmp 0x45e91b
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [esi + 4]
push ebx
push edi
push eax
call fcn.0046c760
mov dword [0x4f9c9c], eax
test eax, eax
je 0x45e940
cmp eax, 0x600
je 0x45e940
push edi
call fcn.0049ca2e
add esp, 4
cmp byte [0x4f966f], 0
jne 0x45e934
mov edi, esi
call fcn.0046ca80
mov dword [ebp - 4], 0xffffffff
jmp 0x45e792
cmp byte [0x4f966f], 0
jne 0x45e97f
cmp dword [esi], 1
je 0x45e95a
mov dword [0x4f9c9c], 0x80000
jmp 0x45e97f
mov esi, dword [esi + 4]
call fcn.0046c850
push esi
mov dword [0x4f9c9c], eax
call fcn.0049c71f
mov edx, dword [ebp - 0x3c4]
add esp, 4
push edx
call fcn.0049c71f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
cmp eax, ecx
je 0x45ea14
push eax
call fcn.0049c78c
add esp, 4
jmp 0x45ea14
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.0044d830
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x45ea1c
push esi
call fcn.0044d830
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c0], eax
push esi
test eax, eax
jne 0x45e9d8
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x45ea1c
call fcn.0044d830
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x45ea1c
push ebx
call fcn.0049c139
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x3c0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.0049fa60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x45ea9f
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45ea98
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x45ea98
push ebx
mov dword [ebp - 0x3c8], 0
call fcn.0049c139
add esp, 4
push 0
lea edx, [ebp - 0x3c8]
push edx
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c8], ebx
je 0x45ea94
push edi
call fcn.0049ca2e
add esp, 4
xor eax, eax
jmp 0x45ecb3
test edi, edi
jne 0x45ea9f
xor eax, eax
jmp 0x45ecb3
xor eax, eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x3cc]
push ecx
add ebx, edi
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], ebx
call fcn.0047e250
push edi
mov esi, eax
call fcn.0049ca2e
add esp, 0xc
test esi, esi
je 0x45ea98
push 0x2c
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.0049f910
mov edi, dword [ebp - 0x3cc]
mov eax, dword [ebp - 0x3c0]
add esp, 0xc
push 0
mov ebx, edi
imul ebx, eax
push 0
mov ecx, eax
neg ecx
lea eax, [ebp - 0x3bc]
push eax
mov dword [ebp - 0x38], ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebx*4]
push 0
mov dword [ebp - 0x40], 0x28
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x200001
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x3b5], 0
mov dword [ebp - 0x3bc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3c8], eax
test eax, eax
je 0x45ea98
xor ecx, ecx
test ebx, ebx
jle 0x45ec6d
mov eax, dword [ebp - 0x3bc]
mov dl, byte [esi + ecx*4 + 3]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [ebp - 0x3bc]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x45ebfa
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 - 0x3bc]
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 - 0x3bc]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov byte [ebp - 0x3b5], 1
jmp 0x45ec1e
mov dl, byte [esi + ecx*4 + 2]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 1]
mov edx, dword [ebp - 0x3bc]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi + ecx*4]
mov edx, dword [ebp - 0x3bc]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [ebp - 0x3bc]
mov edx, dword [ebp + 0x10]
cmp dword [eax + ecx*4], edx
jne 0x45ec5e
mov byte [eax + ecx*4], 0
mov eax, dword [ebp - 0x3bc]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [ebp - 0x3bc]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [ebp - 0x3bc]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [ebp - 0x3bc]
mov byte [ebp - 0x3b5], 1
inc ecx
cmp ecx, ebx
jl 0x45eb81
mov edi, dword [ebp - 0x3cc]
push esi
call fcn.0049c78c
add esp, 4
push 0x98
call fcn.0049caff
add esp, 4
test eax, eax
je 0x45ec94
lea ecx, [eax + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov word [ecx], dx
jmp 0x45ec96
xor eax, eax
mov ecx, dword [ebp - 0x3c8]
mov edx, dword [ebp - 0x3c0]
mov dword [eax], ecx
mov cl, byte [ebp - 0x3b5]
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 - 0x14]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret