Function at 0x4096f6
Capabilities:
Create thread

Disassembly:
sub esp, 0x88
mov eax, dword [0x6b0d44]
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.0046febf
mov dword [0x76a46c], eax
call fcn.004080bd
mov eax, dword [0x76a484]
test eax, eax
je 0x409779
cmp esi, 0xc8
jge 0x409771
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x76a484]
test eax, eax
jne 0x40974f
cmp esi, 0xc8
jl 0x409779
test eax, eax
jne 0x409d41
and dword [0x6b4e2c], 0
and dword [0x76a490], 0
cmp dword [0x76a4ac], 0
mov dword [0x76a484], 1
jne 0x4097ad
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x6b4e34], eax
call fcn.0040b196
test ax, ax
je 0x409d41
mov edx, ebp
mov ecx, ebx
call fcn.004093ba
cmp dword [0x76a4ac], 0
jne 0x4097e4
xor eax, eax
push eax
push eax
push edi
push 0x409696
push eax
push eax
mov dword [0x6b4e2c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x76a4bc]
test edx, edx
jle 0x409816
mov esi, dword [0x76a4a4]
mov edi, dword [0x76a4c4]
xor ecx, ecx
test edi, edi
jle 0x40980e
mov eax, dword [esi]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, edi
jl 0x409800
add esi, 4
sub edx, 1
jne 0x4097fa
mov edx, ebp
mov ecx, ebx
call fcn.00408943
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6b4e2c], 0
jne 0x409c37
mov edx, dword [0x76a4bc]
test edx, edx
jle 0x409864
mov esi, dword [0x76a4a4]
mov edi, dword [0x76a4c4]
xor ecx, ecx
test edi, edi
jle 0x40985c
mov eax, dword [esi]
mov byte [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, edi
jl 0x409850
add esi, 4
sub edx, 1
jne 0x40984a
xor ecx, ecx
mov edx, ebx
push ebp
inc ecx
call fcn.00408a8a
cmp dword [0x6b4e2c], 0
pop ecx
jne 0x409c37
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [0x76a46c]
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.0046d4b2
mov esi, eax
test esi, esi
je 0x409951
movzx ecx, word [esi]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x59
jne 0x4099ab
cmp dword [0x76a478], 0
jne 0x4098e2
mov eax, dword [esi + 4]
xor edi, edi
sub eax, dword [0x76a474]
inc edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
sub eax, dword [0x76a4cc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x40992d
mov ecx, dword [esi + 4]
mov ebx, dword [0x76a4b0]
cmp ecx, ebx
jl 0x409929
mov eax, dword [0x76a4b4]
add eax, ebx
cmp ecx, eax
jg 0x409929
mov edx, dword [esi + 8]
mov ebp, dword [0x76a4a0]
cmp edx, ebp
jl 0x409925
mov eax, dword [0x76a494]
add eax, ebp
cmp edx, eax
jg 0x409925
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.0046bfb6
mov ecx, dword [0x76a46c]
call fcn.0046d4b2
mov esi, eax
test esi, esi
jne 0x4098a2
test edi, edi
jne 0x409a37
cmp dword [0x76a42c], 0
jne 0x4099d7
cmp dword [0x76a470], 0
je 0x4099d7
cmp dword [esp + 0x14], 0
je 0x409a7e
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 [0x6b4ad0]
mov byte [esp + 0x88], al
lea eax, [esp + 0x84]
jmp 0x409a75
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x58
pop ecx
cmp ax, cx
jne 0x4099c8
cmp dword [esp + 0x14], 0
jne 0x40992d
push ebp
push dword [esi - 0x10]
push esi
call ebx
add esp, 0xc
jmp 0x40992d
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 [0x76a478], 0
mov eax, dword [esp + 0x40]
jne 0x409a1f
sub eax, dword [0x76a474]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x76a4cc]
jmp 0x409a33
sub eax, dword [0x76a4b0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x76a4a0]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
jne 0x409a7e
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.0040ad9d
pop ecx
cmp eax, 1
je 0x409be3
cmp dword [esp + 0x28], 0
je 0x409be3
mov edx, dword [0x76a498]
lea eax, [esp + 0x58]
mov ecx, dword [0x76a4b8]
push eax
call fcn.0040b14b
xor ebx, ebx
pop ecx
cmp dword [0x76a4bc], ebx
jle 0x409bc1
xor edi, edi
cmp dword [0x76a4c4], edi
jle 0x409bb4
mov esi, dword [0x76a498]
mov ebp, dword [0x76a4b8]
imul esi, ebx
imul ebp, edi
cmp dword [0x6b4e2c], 0
jne 0x409bb4
cmp dword [0x76a490], 0
je 0x409b11
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6b4e2c], 0
je 0x409af7
cmp dword [0x6b4e2c], 0
jne 0x409bb4
mov eax, dword [0x6b4e40]
cmp eax, dword [0x6b4e3c]
jne 0x409bb4
mov eax, dword [0x76a4a4]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x409ba7
cmp al, 3
je 0x409ba7
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.0040aa5d
xor ebp, ebp
add esp, 0x14
inc ebp
cmp eax, ebp
je 0x409ba7
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x409ba7
cmp dword [0x6b4e2c], 0
jne 0x409ba7
push dword [esp + 0x18]
push dword [esp + 0x4c]
push esi
call dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x409b98
test eax, eax
jne 0x409b9e
mov dword [0x76a490], ebp
jmp 0x409b9e
mov dword [0x6b4e2c], ebp
push ebp
push esi
call fcn.005cdee0
pop ecx
pop ecx
inc edi
cmp edi, dword [0x76a4c4]
jl 0x409ad8
inc ebx
cmp ebx, dword [0x76a4bc]
jl 0x409aca
push 1
push dword [esp + 0x2c]
call fcn.005cdee0
and dword [esp + 0x30], 0
xorps xmm0, xmm0
mov eax, dword [0x6b4e2c]
pop ecx
pop ecx
movlpd qword [esp + 0x50], xmm0
jmp 0x409beb
xor eax, eax
inc eax
mov dword [0x6b4e2c], eax
mov esi, dword [0x76a4a8]
test eax, eax
jne 0x409c37
test esi, esi
jle 0x409c27
cmp esi, 0x32
jle 0x409c0b
push 0x32
sub esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409c14
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 [0x6b4e2c]
test eax, eax
je 0x409bf5
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x409834
mov eax, dword [0x76a4a4]
xor ebx, ebx
test eax, eax
je 0x409c76
mov esi, ebx
cmp dword [0x76a4bc], ebx
jle 0x409c66
push 1
push dword [eax + esi*4]
call fcn.005cdee0
mov eax, dword [0x76a4a4]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x76a4bc]
jl 0x409c4c
push 1
push eax
call fcn.005cdee0
pop ecx
pop ecx
mov dword [0x76a4a4], ebx
mov eax, dword [0x76a4d8]
test eax, eax
je 0x409c89
push 1
push eax
call fcn.005cdee0
pop ecx
pop ecx
push dword [0x76a544]
mov dword [0x76a4e0], ebx
mov dword [0x76a4d8], ebx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x76a504]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x76a540]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x76a4dc]
test eax, eax
je 0x409cca
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x76a458]
mov dword [0x76a4dc], ebx
test eax, eax
je 0x409d14
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov eax, dword [0x76a460]
mov dword [0x76a458], ebx
test eax, eax
je 0x409d14
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1388
push dword [0x76a464]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x409d14
mov ecx, eax
call fcn.0046bfb6
mov ecx, dword [0x76a46c]
call fcn.0046d4b2
test eax, eax
jne 0x409d0d
mov ecx, dword [0x76a46c]
call fcn.004700b4
push 1
push dword [esp + 0x34]
mov dword [0x76a484], ebx
call fcn.005cdee0
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.0059b3f0
add esp, 0x88
ret