Function at 0x40ae10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae838
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6019e4]
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.00587250
mov ecx, dword [0x62b0a8]
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 [0x62b0b4], edx
je 0x40af27
mov eax, dword [0x62b0ac]
test eax, eax
je 0x40af09
push eax
call fcn.0058c812
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov dword [0x62b0b4], eax
call fcn.0058db11
add esp, 4
mov dword [0x62b0ac], eax
test eax, eax
je 0x40b35f
mov edx, dword [ebp - 0x70]
push ebx
push esi
push dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.0040ac80
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 0x40af97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0xaa
mov edx, 0x5ed160
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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 [0x62b0ac]
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 0x40b01a
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, 0x5ed184
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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 0x40b051
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 0x40b053
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 0x40b0ad
test esi, esi
je 0x40b07f
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, 0x5ed1a8
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
push 0x62b0b8
push 0x62b104
push dword [ebp - 0x58]
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x40b109
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, 0x5ed1cc
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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 0x40b169
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, 0x5ed1f0
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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 0x40b1c7
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, 0x5ed214
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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.0058db11
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x40b22f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x624148
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x4c4
push 0x624164
push 0x624180
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
push dword [ebp - 0x60]
push 0
push eax
call fcn.00587250
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 0x40b2ad
call dword [eax]
push dword [ebp - 0x68]
call fcn.0058c812
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, 0x5ed238
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
jmp 0x40b35f
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 0x40b331
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 0x40b35f
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.005852a8
mov esp, ebp
pop ebp
ret