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

Disassembly:
push 0xffffffffffffffff
push 0x5e1891
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28c]
xor ebx, ebx
or ebp, 0xffffffff
cmp ecx, ebx
jne 0x45aa4e
mov ecx, dword [0x664b30]
push ebp
lea eax, [esp + 0x70]
push ecx
lea esi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], bl
call fcn.00428e20
mov dword [esp + 0x27c], ebx
mov eax, dword [0x664b78]
cmp byte [eax], bl
jne 0x45a7a6
mov eax, dword [esp + 0x284]
cmp eax, ebx
je 0x45a6e4
push eax
mov edx, esi
push edx
call fcn.00428d20
mov eax, dword [esp + 0x68]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
jne 0x45a72a
mov dword [esp + 0x27c], ebp
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
cmp eax, ecx
je 0x45aab0
push eax
call fcn.0049b045
add esp, 4
jmp 0x45aab0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x45a75d
mov dword [esp + 0x27c], ebp
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x6c]
cmp eax, edx
je 0x45aab0
push eax
call fcn.0049b045
add esp, 4
jmp 0x45aab0
push edi
mov dword [esp + 0x20], ebx
call fcn.0048fcef
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x20]
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 [esp + 0x1c], edi
je 0x45aa2c
push ebx
call fcn.0048fcfa
add esp, 4
mov dword [esp + 0x27c], 0xffffffff
jmp 0x45a70c
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.00428d20
mov ecx, dword [0x664bc0]
push ebp
lea eax, [esp + 0xb8]
push ecx
lea esi, [esp + 0xb8]
mov dword [esp + 0xb8], eax
mov byte [esp + 0xbc], 0
call fcn.00428e20
mov byte [esp + 0x27c], 1
cmp byte [0x664959], 0
je 0x45a7f4
mov ebp, dword [0x66bde8]
jmp 0x45a80e
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0xb0]
push 2
push 0
push edx
call fcn.004499d0
add esp, 0xc
mov ebp, eax
test ebp, ebp
jne 0x45a847
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x45a82d
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x27c], 0xffffffff
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x6c]
cmp eax, edx
jmp 0x45a716
mov ecx, dword [esp + 0x284]
or ebx, 0xffffffff
push ebx
lea eax, [esp + 0x100]
push ecx
lea esi, [esp + 0x100]
mov dword [esp + 0x24], 0
mov dword [esp + 0x100], eax
mov byte [esp + 0x104], 0
call fcn.00428e20
mov edx, esi
push edx
mov edx, 0x637a14
mov ecx, 0x6350f8
mov byte [esp + 0x280], 2
call fcn.00429240
cmp dword [ebp], 1
je 0x45a8a9
mov dword [0x66be20], 0x80000
jmp 0x45a8cf
mov edx, dword [esp + 0xf8]
mov esi, dword [ebp + 4]
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004497d0
mov dword [0x66be20], eax
test eax, eax
je 0x45a911
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0xfc]
cmp eax, ecx
je 0x45a8ea
push eax
call fcn.0049b045
add esp, 4
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0xb4]
cmp eax, edx
je 0x45a905
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x27c], ebx
jmp 0x45a70c
mov edi, dword [esp + 0x268]
test edi, edi
jne 0x45a968
mov eax, dword [esp + 0xf8]
lea edx, [esp + 0xfc]
cmp eax, edx
je 0x45a937
push eax
call fcn.0049b045
add esp, 4
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x45a952
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x27c], ebx
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x6c]
cmp eax, edx
jmp 0x45a716
push edi
call fcn.0048fcef
add esp, 4
cmp dword [ebp], 1
mov ebx, eax
je 0x45a985
mov dword [0x66be20], 0x80000
jmp 0x45a9a5
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push edi
push ebx
push ecx
push eax
call fcn.004498a0
mov dword [0x66be20], eax
test eax, eax
je 0x45a9e4
cmp eax, 0x600
je 0x45a9e4
push ebx
call fcn.0048fcfa
add esp, 4
cmp byte [0x664959], 0
jne 0x45a9c0
push ebp
call fcn.00449b20
add esp, 4
mov eax, dword [esp + 0xf8]
lea edx, [esp + 0xfc]
cmp eax, edx
je 0x45a812
push eax
call fcn.0049b045
add esp, 4
jmp 0x45a812
cmp byte [0x664959], 0
jne 0x45a9f6
push ebp
call fcn.00449b20
add esp, 4
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0xfc]
cmp eax, ecx
je 0x45aa11
push eax
call fcn.0049b045
add esp, 4
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0xb4]
cmp eax, edx
je 0x45aa2c
push eax
call fcn.0049b045
add esp, 4
mov dword [esp + 0x27c], 0xffffffff
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
cmp eax, ecx
je 0x45aaa8
push eax
call fcn.0049b045
add esp, 4
jmp 0x45aaa8
cmp eax, ebx
jne 0x45aa57
call fcn.0042b180
mov edx, dword [esp + 0x284]
push ecx
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x45aab0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
je 0x45aab0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x45aab0
push edi
call fcn.0048fcef
add esp, 4
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004a26d0
add esp, 0xc
test ebx, ebx
jne 0x45ab31
mov eax, dword [esp + 0x284]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45ab2a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x45ab2a
push edi
mov dword [esp + 0x30], 0
call fcn.0048fcef
add esp, 4
push 0
lea ecx, [esp + 0x30]
push ecx
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 [esp + 0x2c], edi
je 0x45ab26
push ebx
call fcn.0048fcfa
add esp, 4
xor eax, eax
jmp 0x45adb9
test ebx, ebx
jne 0x45ab31
xor eax, eax
jmp 0x45adb9
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push edi
lea edx, [esp + 0x30]
mov ecx, ebx
mov byte [esp + 0x23], 0
mov dword [esp + 0x40], 0
call fcn.0044a150
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
je 0x45acda
push 0x2c
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.004a0660
add esp, 0xc
push 0
mov dword [esp + 0x44], esi
imul esi, ebp
mov eax, 1
push 0
mov word [esp + 0x50], ax
lea eax, [esp + 0x20]
push eax
mov ecx, 0x20
mov edx, ebp
neg edx
mov word [esp + 0x56], cx
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esi*4]
push 0
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x64], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x34], eax
test eax, eax
je 0x45acda
xor ecx, ecx
test esi, esi
jle 0x45accd
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
add esi, 3
nop
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov ebp, dword [esp + 0x18]
cmp byte [ebp + ecx*4 + 3], 0xff
jae 0x45ac68
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ebp + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov byte [esp + 0x17], 1
jmp 0x45ac87
mov dl, byte [esi - 1]
mov byte [ebp + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x288]
cmp dword [eax + ecx*4], edx
jne 0x45acbf
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x17], 1
inc ecx
add esi, 4
cmp ecx, dword [esp + 0x28]
jl 0x45ac00
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0049b045
add esp, 4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.004a26d0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 1
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [esp + 0x20]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x45ad39
lea eax, [esi + 4]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x45ad3b
xor esi, esi
xor edi, edi
cmp esi, edi
je 0x45ad4b
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x45ad60
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
xor esi, esi
call edx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call fcn.0048fcfa
mov ebx, dword [esp + 0x38]
add esp, 4
cmp ebx, edi
jne 0x45ad79
cmp esi, edi
je 0x45ab2a
push 0x64
call fcn.0048fcc0
add esp, 4
cmp eax, edi
je 0x45ad97
lea ecx, [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov byte [ecx], 0
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x45ad99
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], ecx
mov cl, byte [esp + 0x17]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], cl
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00499a1c
add esp, 0x26c
ret