Function at 0x40cc94
Capabilities:
Create thread

Disassembly:
sub esp, 0x88
mov eax, dword [0x6ccd44]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], edi
mov esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
call fcn.0048708c
mov dword [0x72a1d0], eax
call fcn.0040b50f
mov eax, dword [0x72a1e8]
test eax, eax
je 0x40cd17
cmp esi, 0xc8
jge 0x40cd0f
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x72a1e8]
test eax, eax
jne 0x40cced
cmp esi, 0xc8
jl 0x40cd17
test eax, eax
jne 0x40d2cb
and dword [0x6d23c8], 0
and dword [0x72a1f4], 0
cmp dword [0x72a210], 0
mov dword [0x72a1e8], 1
jne 0x40cd4b
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x6d23d0], eax
call fcn.0040e76c
test ax, ax
je 0x40d2cb
mov edx, ebp
mov ecx, ebx
call fcn.0040c958
cmp dword [0x72a210], 0
jne 0x40cd8e
xor eax, eax
push eax
push eax
push edi
push 0x40cc34
push eax
push eax
mov dword [0x6d23c8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x72a220], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x72a224]
test edx, edx
jle 0x40cdc0
mov esi, dword [0x72a208]
mov edi, dword [0x72a22c]
xor ecx, ecx
test edi, edi
jle 0x40cdb8
mov eax, dword [esi]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, edi
jl 0x40cdaa
add esi, 4
sub edx, 1
jne 0x40cda4
mov edx, ebp
mov ecx, ebx
call fcn.0040bdca
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6d23c8], 0
jne 0x40d1e1
mov edx, dword [0x72a224]
test edx, edx
jle 0x40ce0e
mov esi, dword [0x72a208]
mov edi, dword [0x72a22c]
xor ecx, ecx
test edi, edi
jle 0x40ce06
mov eax, dword [esi]
mov byte [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, edi
jl 0x40cdfa
add esi, 4
sub edx, 1
jne 0x40cdf4
xor ecx, ecx
mov edx, ebx
push ebp
inc ecx
call fcn.0040bf7b
cmp dword [0x6d23c8], 0
pop ecx
jne 0x40d1e1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [0x72a1d0]
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.004844b0
mov esi, eax
test esi, esi
je 0x40cefb
movzx ecx, word [esi]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x59
jne 0x40cf55
cmp dword [0x72a1dc], 0
jne 0x40ce8c
mov eax, dword [esi + 4]
xor edi, edi
sub eax, dword [0x72a1d8]
inc edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
sub eax, dword [0x72a234]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x40ced7
mov ecx, dword [esi + 4]
mov ebx, dword [0x72a214]
cmp ecx, ebx
jl 0x40ced3
mov eax, dword [0x72a218]
add eax, ebx
cmp ecx, eax
jg 0x40ced3
mov edx, dword [esi + 8]
mov ebp, dword [0x72a204]
cmp edx, ebp
jl 0x40cecf
mov eax, dword [0x72a1f8]
add eax, ebp
cmp edx, eax
jg 0x40cecf
xor edi, edi
sub ecx, ebx
inc edi
mov dword [esp + 0x20], ecx
sub edx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.00481286
mov ecx, dword [0x72a1d0]
call fcn.004844b0
mov esi, eax
test esi, esi
jne 0x40ce4c
test edi, edi
jne 0x40cfe1
cmp dword [0x72a190], 0
jne 0x40cf81
cmp dword [0x72a1d4], 0
je 0x40cf81
cmp dword [esp + 0x14], 0
je 0x40d028
and dword [esp + 0x14], 0
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x58
pop eax
push eax
call esi
push 5
mov word [esp + 0x88], ax
call esi
mov word [esp + 0x86], ax
mov al, byte [0x6d2084]
mov byte [esp + 0x88], al
lea eax, [esp + 0x84]
jmp 0x40d01f
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x58
pop ecx
cmp ax, cx
jne 0x40cf72
cmp dword [esp + 0x14], 0
jne 0x40ced7
push ebp
push dword [esi - 0x10]
push esi
call ebx
add esp, 0xc
jmp 0x40ced7
xor eax, eax
mov dword [esp + 0x1c], 1
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
cmp dword [0x72a1dc], 0
mov eax, dword [esp + 0x40]
jne 0x40cfc9
sub eax, dword [0x72a1d8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x72a234]
jmp 0x40cfdd
sub eax, dword [0x72a214]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x72a204]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
jne 0x40d028
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x58
pop eax
push eax
mov dword [esp + 0x18], 1
call esi
push 5
mov word [esp + 0x90], ax
call esi
mov word [esp + 0x8e], ax
lea eax, [esp + 0x8c]
mov byte [esp + 0x90], 0xe
push ebp
push 5
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x2c]
call fcn.0040e373
pop ecx
cmp eax, 1
je 0x40d18d
cmp dword [esp + 0x28], 0
je 0x40d18d
mov edx, dword [0x72a1fc]
lea eax, [esp + 0x58]
mov ecx, dword [0x72a21c]
push eax
call fcn.0040e721
xor ebx, ebx
pop ecx
cmp dword [0x72a224], ebx
jle 0x40d16b
xor edi, edi
cmp dword [0x72a22c], edi
jle 0x40d15e
mov esi, dword [0x72a1fc]
mov ebp, dword [0x72a21c]
imul esi, ebx
imul ebp, edi
cmp dword [0x6d23c8], 0
jne 0x40d15e
cmp dword [0x72a1f4], 0
je 0x40d0bb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6d23c8], 0
je 0x40d0a1
cmp dword [0x6d23c8], 0
jne 0x40d15e
mov eax, dword [0x6d23dc]
cmp eax, dword [0x6d23d8]
jne 0x40d15e
mov eax, dword [0x72a208]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x40d151
cmp al, 3
je 0x40d151
push edi
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x54]
mov edx, esi
push eax
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0040e034
xor ebp, ebp
add esp, 0x14
inc ebp
cmp eax, ebp
je 0x40d151
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40d151
cmp dword [0x6d23c8], 0
jne 0x40d151
push dword [esp + 0x18]
push dword [esp + 0x4c]
push esi
call dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x40d142
test eax, eax
jne 0x40d148
mov dword [0x72a1f4], ebp
jmp 0x40d148
mov dword [0x6d23c8], ebp
push ebp
push esi
call fcn.005e7dd0
pop ecx
pop ecx
inc edi
cmp edi, dword [0x72a22c]
jl 0x40d082
inc ebx
cmp ebx, dword [0x72a224]
jl 0x40d074
push 1
push dword [esp + 0x2c]
call fcn.005e7dd0
and dword [esp + 0x30], 0
xorps xmm0, xmm0
mov eax, dword [0x6d23c8]
pop ecx
pop ecx
movlpd qword [esp + 0x50], xmm0
jmp 0x40d195
xor eax, eax
inc eax
mov dword [0x6d23c8], eax
mov esi, dword [0x72a20c]
test eax, eax
jne 0x40d1e1
test esi, esi
jle 0x40d1d1
cmp esi, 0x32
jle 0x40d1b5
push 0x32
sub esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d1be
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [0x6d23c8]
test eax, eax
je 0x40d19f
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x40cdde
mov eax, dword [0x72a208]
xor ebx, ebx
test eax, eax
je 0x40d220
mov esi, ebx
cmp dword [0x72a224], ebx
jle 0x40d210
push 1
push dword [eax + esi*4]
call fcn.005e7dd0
mov eax, dword [0x72a208]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x72a224]
jl 0x40d1f6
push 1
push eax
call fcn.005e7dd0
pop ecx
pop ecx
mov dword [0x72a208], ebx
mov eax, dword [0x72a244]
test eax, eax
je 0x40d233
push 1
push eax
call fcn.005e7dd0
pop ecx
pop ecx
push dword [0x72a2b0]
mov dword [0x72a24c], ebx
mov dword [0x72a244], ebx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x72a270]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x72a2ac]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x72a248]
test eax, eax
je 0x40d274
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x72a1bc]
mov dword [0x72a248], ebx
test eax, eax
je 0x40d29e
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov dword [0x72a1bc], ebx
call fcn.0040b327
jmp 0x40d29e
mov ecx, eax
call fcn.00481286
mov ecx, dword [0x72a1d0]
call fcn.004844b0
test eax, eax
jne 0x40d297
mov ecx, dword [0x72a1d0]
call fcn.004873d2
push 1
push dword [esp + 0x34]
mov dword [0x72a1e8], ebx
call fcn.005e7dd0
pop ecx
pop ecx
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b35b0
add esp, 0x88
ret