Function at 0x4023c0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa9c
mov eax, dword [0x417044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x418e90], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x418dc8
push 0x418d00
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
jne 0x402420
xor eax, eax
jmp 0x40281f
call fcn.00401320
mov dword [0x41a498], eax
call fcn.00402080
test eax, eax
jne 0x402440
call fcn.00401bb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x198]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x104
lea eax, [ebp - 0xa68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 0x850], 0
push 0x7f
push 0
lea ecx, [ebp - 0x84f]
push ecx
call fcn.0040cfd0
add esp, 0xc
push 0x42e
push 0
lea edx, [ebp - 0x7d0]
push edx
call fcn.0040cfd0
add esp, 0xc
push 0x4ae
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0xa68]
push ecx
call fcn.00406550
add esp, 0xc
cmp eax, 1
jne 0x4024fe
mov dword [ebp - 0xa6c], 0
jmp 0x4024d1
mov edx, dword [ebp - 0xa6c]
add edx, 2
mov dword [ebp - 0xa6c], edx
cmp dword [ebp - 0xa6c], 0x4ae
jae 0x4024fc
mov eax, dword [ebp - 0xa6c]
movzx ecx, byte [ebp + eax - 0x850]
not ecx
mov edx, dword [ebp - 0xa6c]
mov byte [ebp + edx - 0x850], cl
jmp 0x4024c2
jmp 0x402550
push 0x4151a4
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x3d0], eax
mov eax, 0x2bb6
mov word [ebp - 0x3cc], ax
push 0x4151c0
call fcn.004011d0
add esp, 4
mov dword [ebp - 0x3ca], eax
mov dword [ebp - 0x3c6], 0x51
push 0x4151e0
push 0x10
lea ecx, [ebp - 0x3c2]
push ecx
call fcn.0040673f
add esp, 0xc
mov dword [ebp - 0xa70], 0x4151f0
mov dword [ebp - 0xa74], 0x41a6a8
mov edx, dword [ebp - 0xa74]
mov dword [ebp - 0xa78], edx
mov eax, dword [ebp - 0xa70]
mov cx, word [eax]
mov word [ebp - 0xa7a], cx
mov edx, dword [ebp - 0xa74]
mov ax, word [ebp - 0xa7a]
mov word [edx], ax
mov ecx, dword [ebp - 0xa70]
add ecx, 2
mov dword [ebp - 0xa70], ecx
mov edx, dword [ebp - 0xa74]
add edx, 2
mov dword [ebp - 0xa74], edx
cmp word [ebp - 0xa7a], 0
jne 0x402570
push 0x41a6a8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x4025ed
mov eax, dword [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40281f
push 0x41a6a8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x402614
xor eax, eax
jmp 0x40281f
push 0x41a4a8
lea ecx, [ebp - 0x850]
push ecx
call fcn.004029e0
add esp, 8
xor edx, edx
mov word [ebp - 0x3a0], dx
xor eax, eax
mov dword [ebp - 0x39e], eax
mov dword [ebp - 0x39a], eax
mov dword [ebp - 0x396], eax
mov dword [ebp - 0x392], eax
mov dword [ebp - 0x38e], eax
mov dword [ebp - 0x38a], eax
mov dword [ebp - 0x386], eax
mov word [ebp - 0x382], ax
push 0x1e0
push 0
lea ecx, [ebp - 0x378]
push ecx
call fcn.0040cfd0
add esp, 0xc
mov dword [ebp - 0x378], 0x504d534d
lea edx, [ebp - 0x3a0]
push edx
mov eax, dword [ebp - 0x3ca]
push eax
call fcn.00401070
add esp, 8
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0xa80], ecx
lea edx, [ebp - 0x374]
mov dword [ebp - 0xa84], edx
mov eax, dword [ebp - 0xa84]
mov dword [ebp - 0xa88], eax
mov ecx, dword [ebp - 0xa80]
mov dx, word [ecx]
mov word [ebp - 0xa8a], dx
mov eax, dword [ebp - 0xa84]
mov cx, word [ebp - 0xa8a]
mov word [eax], cx
mov edx, dword [ebp - 0xa80]
add edx, 2
mov dword [ebp - 0xa80], edx
mov eax, dword [ebp - 0xa84]
add eax, 2
mov dword [ebp - 0xa84], eax
cmp word [ebp - 0xa8a], 0
jne 0x4026be
mov cx, word [ebp - 0x3c6]
mov word [ebp - 0x2f4], cx
lea edx, [ebp - 0x3a0]
push edx
mov eax, dword [ebp - 0x3d0]
push eax
call fcn.00401070
add esp, 8
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0xa90], ecx
lea edx, [ebp - 0x2d2]
mov dword [ebp - 0xa94], edx
mov eax, dword [ebp - 0xa94]
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa90]
mov dx, word [ecx]
mov word [ebp - 0xa9a], dx
mov eax, dword [ebp - 0xa94]
mov cx, word [ebp - 0xa9a]
mov word [eax], cx
mov edx, dword [ebp - 0xa90]
add edx, 2
mov dword [ebp - 0xa90], edx
mov eax, dword [ebp - 0xa94]
add eax, 2
mov dword [ebp - 0xa94], eax
cmp word [ebp - 0xa9a], 0
jne 0x40274e
mov cx, word [ebp - 0x3cc]
mov word [ebp - 0x252], cx
mov edx, dword [ebp - 0x3d0]
mov dword [0x41a49c], edx
mov ax, word [ebp - 0x3cc]
mov word [0x41a4a0], ax
xor ecx, ecx
mov dword [ebp - 0x2f2], ecx
mov dword [ebp - 0x2ee], ecx
mov dword [ebp - 0x2ea], ecx
mov dword [ebp - 0x2e6], ecx
mov edx, dword [ebp - 0x3c2]
mov dword [ebp - 0x2f2], edx
mov eax, dword [ebp - 0x3be]
mov dword [ebp - 0x2ee], eax
mov ecx, dword [ebp - 0x3ba]
mov dword [ebp - 0x2ea], ecx
mov dx, word [ebp - 0x3b6]
mov word [ebp - 0x2e6], dx
push 0
lea eax, [ebp - 0x378]
push eax
call fcn.004065f0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret