Function at 0x40a5b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adf78
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6009e4]
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 dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], 0
push 0x2c
mov dword [ebp - 0x74], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.005869c0
mov ecx, dword [0x623428]
mov edx, esi
mov ebx, dword [ebp + 0xc]
add esp, 0xc
imul edx, ecx
mov dword [ebp - 0xac], 0x28
lea eax, [ecx*8]
mov dword [ebp - 0xa4], ebx
mov word [ebp - 0x9e], ax
mov eax, 1
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x84]
imul edx, ebx
mov dword [ebp - 0xa8], esi
movups xmm0, xmmword [ebp - 0xac]
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x98], edx
movups xmm0, xmmword [ebp - 0x9c]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x8c]
movq qword [ebp - 0x30], xmm0
cmp dword [0x623434], edx
je 0x40a6c7
mov eax, dword [0x62342c]
test eax, eax
je 0x40a6a9
push eax
call fcn.0058bf82
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov dword [0x623434], eax
call fcn.0058d200
add esp, 4
mov dword [0x62342c], eax
test eax, eax
je 0x40aaff
mov edx, dword [ebp - 0x70]
push ebx
push esi
push dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.0040a420
xor eax, eax
mov dword [ebp - 0x1a], 0x36
mov dword [ebp - 0x1e], eax
add esp, 0x10
mov eax, dword [ebp - 0x3c]
add eax, 0x36
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x22], eax
mov eax, 0x4d42
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x54]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40a737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xaa
mov edx, 0x5ec160
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x24]
push 0
push 0xe
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
push 0
push 0x28
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x54]
push 0
push dword [ebp - 0x3c]
push dword [0x62342c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
push 0
push 0
movlpd qword [ebp - 0x64], xmm0
push dword [ebp - 0x60]
mov ecx, dword [eax]
push dword [ebp - 0x64]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x40a7ba
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xb9
mov edx, 0x5ec184
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
mov ebx, dword [ebp - 0x54]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40a7f1
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ebx
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40a7f3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x58]
push eax
push 1
push 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40a84d
test esi, esi
je 0x40a81f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xc7
mov edx, 0x5ec1a8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
push 0x623438
push 0x623484
push dword [ebp - 0x58]
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x40a8a9
mov dword [esi + 8], eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xd3
mov edx, 0x5ec1cc
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x7c]
push edx
push 2
xorps xmm0, xmm0
mov ecx, dword [eax]
movlpd qword [ebp - 0x64], xmm0
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x40a909
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xe0
mov edx, 0x5ec1f0
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
mov eax, dword [ebp - 0x58]
xorps xmm0, xmm0
push 0
push 0
movlpd qword [ebp - 0x64], xmm0
push dword [ebp - 0x60]
mov ecx, dword [eax]
push dword [ebp - 0x64]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x40a967
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xec
mov edx, 0x5ec214
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
mov ebx, dword [ebp - 0x7c]
mov eax, 0xffdc
cmp eax, ebx
sbb eax, eax
and eax, 8
add eax, 8
add eax, ebx
push eax
mov dword [ebp - 0x60], eax
call fcn.0058d200
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x40a9cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
push dword [ebp - 0x60]
push 0
push eax
call fcn.005869c0
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov eax, 0xffdc
cmp eax, ebx
mov edx, dword [ecx]
sbb eax, eax
and eax, 8
add eax, 8
push 0
mov dword [ebp - 0x60], eax
add eax, dword [ebp - 0x68]
push ebx
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
mov ecx, esi
mov eax, dword [esi]
push 1
je 0x40aa4d
call dword [eax]
push dword [ebp - 0x68]
call fcn.0058bf82
mov eax, dword [ebp - 0x54]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0x105
mov edx, 0x5ec238
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
jmp 0x40aaff
call dword [eax]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x74]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov dword [edi], eax
mov eax, dword [ebp - 0x60]
add eax, ebx
mov dword [ecx + 4], 0
mov dword [ecx], eax
cmp ebx, 0xffdc
jbe 0x40aad1
push 0x1b
call esi
mov ecx, dword [edi]
push 8
mov word [ecx], ax
call esi
mov ecx, dword [edi]
mov word [ecx + 2], ax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [edi]
push 3
mov dword [ecx + 4], eax
call esi
mov ecx, dword [edi]
push dword [ebp - 0x6c]
mov word [ecx + 8], ax
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + 0xa], cx
call esi
mov ecx, dword [edi]
push dword [ebp - 0x70]
mov word [ecx + 0xc], ax
call esi
mov ecx, dword [edi]
mov word [ecx + 0xe], ax
jmp 0x40aaff
push 3
call esi
mov ecx, dword [edi]
mov word [ecx], ax
mov eax, dword [ebp - 0x74]
movzx eax, word [eax]
push eax
call esi
mov ecx, dword [edi]
push dword [ebp - 0x6c]
mov word [ecx + 2], ax
call esi
mov ecx, dword [edi]
push dword [ebp - 0x70]
mov word [ecx + 4], ax
call esi
mov ecx, dword [edi]
mov word [ecx + 6], ax
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 - 0x14]
xor ecx, ebp
call fcn.00584a28
mov esp, ebp
pop ebp
ret