Function at 0x40d3ef
Capabilities:
Create thread

Disassembly:
sub esp, 0x94
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x8c], 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.0048b083
mov dword [0x74c978], eax
call fcn.0040bbe9
mov eax, dword [0x74c990]
test eax, eax
je 0x40d472
cmp esi, 0xc8
jge 0x40d46a
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x74c990]
test eax, eax
jne 0x40d448
cmp esi, 0xc8
jl 0x40d472
test eax, eax
jne 0x40da26
and dword [0x6d77a4], 0
and dword [0x74c99c], 0
cmp dword [0x74c9bc], 0
mov dword [0x74c990], 1
jne 0x40d4a6
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x6d77ac], eax
call fcn.0040eed9
test ax, ax
je 0x40da26
mov edx, ebp
mov ecx, ebx
call fcn.0040d0aa
cmp dword [0x74c9bc], 0
jne 0x40d4e9
xor eax, eax
push eax
push eax
push edi
push 0x40d38f
push eax
push eax
mov dword [0x6d77a4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x74c9cc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x74c9d0]
test edx, edx
jle 0x40d51b
mov esi, dword [0x74c9b4]
mov edi, dword [0x74c9d8]
xor ecx, ecx
test edi, edi
jle 0x40d513
mov eax, dword [esi]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, edi
jl 0x40d505
add esi, 4
sub edx, 1
jne 0x40d4ff
mov edx, ebp
mov ecx, ebx
call fcn.0040c515
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6d77a4], 0
jne 0x40d93c
mov edx, dword [0x74c9d0]
test edx, edx
jle 0x40d569
mov esi, dword [0x74c9b4]
mov edi, dword [0x74c9d8]
xor ecx, ecx
test edi, edi
jle 0x40d561
mov eax, dword [esi]
mov byte [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, edi
jl 0x40d555
add esi, 4
sub edx, 1
jne 0x40d54f
xor ecx, ecx
mov edx, ebx
push ebp
inc ecx
call fcn.0040c6c6
cmp dword [0x6d77a4], 0
pop ecx
jne 0x40d93c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [0x74c978]
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.004883d3
mov esi, eax
test esi, esi
je 0x40d656
movzx ecx, word [esi]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x59
jne 0x40d6b0
cmp dword [0x74c984], 0
jne 0x40d5e7
mov eax, dword [esi + 4]
xor edi, edi
sub eax, dword [0x74c980]
inc edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
sub eax, dword [0x74c9e0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x40d632
mov ecx, dword [esi + 4]
mov ebx, dword [0x74c9c0]
cmp ecx, ebx
jl 0x40d62e
mov eax, dword [0x74c9c4]
add eax, ebx
cmp ecx, eax
jg 0x40d62e
mov edx, dword [esi + 8]
mov ebp, dword [0x74c9b0]
cmp edx, ebp
jl 0x40d62a
mov eax, dword [0x74c9a4]
add eax, ebp
cmp edx, eax
jg 0x40d62a
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.00484cd3
mov ecx, dword [0x74c978]
call fcn.004883d3
mov esi, eax
test esi, esi
jne 0x40d5a7
test edi, edi
jne 0x40d73c
cmp dword [0x74c938], 0
jne 0x40d6dc
cmp dword [0x74c97c], 0
je 0x40d6dc
cmp dword [esp + 0x14], 0
je 0x40d783
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 + 0x90], ax
call esi
mov word [esp + 0x8e], ax
mov al, byte [0x6d7460]
mov byte [esp + 0x90], al
lea eax, [esp + 0x8c]
jmp 0x40d77a
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x58
pop ecx
cmp ax, cx
jne 0x40d6cd
cmp dword [esp + 0x14], 0
jne 0x40d632
push ebp
push dword [esi - 0x10]
push esi
call ebx
add esp, 0xc
jmp 0x40d632
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 [0x74c984], 0
mov eax, dword [esp + 0x40]
jne 0x40d724
sub eax, dword [0x74c980]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x74c9e0]
jmp 0x40d738
sub eax, dword [0x74c9c0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x74c9b0]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
jne 0x40d783
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 + 0x98], ax
call esi
mov word [esp + 0x96], ax
lea eax, [esp + 0x94]
mov byte [esp + 0x98], 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.0040eada
pop ecx
cmp eax, 1
je 0x40d8e8
cmp dword [esp + 0x28], 0
je 0x40d8e8
mov edx, dword [0x74c9a8]
lea eax, [esp + 0x58]
mov ecx, dword [0x74c9c8]
push eax
call fcn.0040ee8e
xor ebx, ebx
pop ecx
cmp dword [0x74c9d0], ebx
jle 0x40d8c6
xor edi, edi
cmp dword [0x74c9d8], edi
jle 0x40d8b9
mov esi, dword [0x74c9a8]
mov ebp, dword [0x74c9c8]
imul esi, ebx
imul ebp, edi
cmp dword [0x6d77a4], 0
jne 0x40d8b9
cmp dword [0x74c99c], 0
je 0x40d816
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6d77a4], 0
je 0x40d7fc
cmp dword [0x6d77a4], 0
jne 0x40d8b9
mov eax, dword [0x6d77b8]
cmp eax, dword [0x6d77b4]
jne 0x40d8b9
mov eax, dword [0x74c9b4]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x40d8ac
cmp al, 3
je 0x40d8ac
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.0040e79b
xor ebp, ebp
add esp, 0x14
inc ebp
cmp eax, ebp
je 0x40d8ac
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40d8ac
cmp dword [0x6d77a4], 0
jne 0x40d8ac
push dword [esp + 0x18]
push dword [esp + 0x4c]
push esi
call dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x40d89d
test eax, eax
jne 0x40d8a3
mov dword [0x74c99c], ebp
jmp 0x40d8a3
mov dword [0x6d77a4], ebp
push ebp
push esi
call fcn.005ed680
pop ecx
pop ecx
inc edi
cmp edi, dword [0x74c9d8]
jl 0x40d7dd
inc ebx
cmp ebx, dword [0x74c9d0]
jl 0x40d7cf
push 1
push dword [esp + 0x2c]
call fcn.005ed680
and dword [esp + 0x30], 0
xorps xmm0, xmm0
mov eax, dword [0x6d77a4]
pop ecx
pop ecx
movlpd qword [esp + 0x50], xmm0
jmp 0x40d8f0
xor eax, eax
inc eax
mov dword [0x6d77a4], eax
mov esi, dword [0x74c9b8]
test eax, eax
jne 0x40d93c
test esi, esi
jle 0x40d92c
cmp esi, 0x32
jle 0x40d910
push 0x32
sub esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d919
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 [0x6d77a4]
test eax, eax
je 0x40d8fa
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x40d539
mov eax, dword [0x74c9b4]
xor ebx, ebx
test eax, eax
je 0x40d97b
mov esi, ebx
cmp dword [0x74c9d0], ebx
jle 0x40d96b
push 1
push dword [eax + esi*4]
call fcn.005ed680
mov eax, dword [0x74c9b4]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x74c9d0]
jl 0x40d951
push 1
push eax
call fcn.005ed680
pop ecx
pop ecx
mov dword [0x74c9b4], ebx
mov eax, dword [0x74c9f0]
test eax, eax
je 0x40d98e
push 1
push eax
call fcn.005ed680
pop ecx
pop ecx
push dword [0x74ca5c]
mov dword [0x74c9f8], ebx
mov dword [0x74c9f0], ebx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x74ca1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x74ca58]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x74c9f4]
test eax, eax
je 0x40d9cf
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x74c964]
mov dword [0x74c9f4], ebx
test eax, eax
je 0x40d9f9
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov dword [0x74c964], ebx
call fcn.0040b919
jmp 0x40d9f9
mov ecx, eax
call fcn.00484cd3
mov ecx, dword [0x74c978]
call fcn.004883d3
test eax, eax
jne 0x40d9f2
mov ecx, dword [0x74c978]
call fcn.0048b3c9
push 1
push dword [esp + 0x34]
mov dword [0x74c990], ebx
call fcn.005ed680
pop ecx
pop ecx
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x94
ret