Function at 0x483f2a
Capabilities:
Create thread

Disassembly:
sub esp, 0x520
mov eax, dword [0x6ccd44]
xor eax, esp
mov dword [esp + 0x51c], eax
push esi
mov esi, ecx
test esi, esi
je 0x484463
push ebx
push ebp
push edi
xor edi, edi
cmp dword [esi + 0x524], edi
jne 0x483f5b
call fcn.00483e99
xor ebp, ebp
mov dword [esp + 0x228], edi
inc ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x124], edi
cmp dword [esi], edi
jne 0x484210
cmp dword [esi + 0x51c], edi
jne 0x483f96
push edi
push edi
push esi
push 0x482be9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x518], eax
cmp dword [esi], edi
jne 0x484210
lea ebx, [esi + 0x2e8]
lea ebp, [esi + 0x4f0]
cmp dword [esi + 0x50c], 2
mov dword [esp + 0x228], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x124], edi
jne 0x483fcb
mov dword [esi + 0x50c], edi
mov ecx, dword [esi + 0x500]
call fcn.0048718e
mov dword [esi + 0x528], 0x5265c00
jmp 0x48405c
mov ecx, dword [esi + 0x52c]
call fcn.004871cd
test eax, eax
je 0x48406a
cmp dword [eax], edi
je 0x484031
mov ecx, dword [esi + 0x528]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x234]
push ecx
push eax
call dword [eax]
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, dword [esi + 0x528]
jge 0x484031
mov dword [esi + 0x528], eax
mov ecx, dword [esi + 0x52c]
call fcn.00487169
mov eax, dword [eax + 4]
test eax, eax
jle 0x484051
cmp eax, dword [esi + 0x528]
jge 0x484051
mov dword [esi + 0x528], eax
mov ecx, dword [esi + 0x52c]
call fcn.004871b8
mov dword [esi + 0x52c], eax
test eax, eax
jne 0x483fe2
mov eax, dword [esi + 0x528]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esi + 0x504]
mov dword [esp + 0x18], eax
imul eax, edx, 0x3e8
mov dword [esp + 0x1c], eax
call fcn.00487407
test eax, eax
jle 0x4840fd
mov ecx, dword [esi + 0x504]
call fcn.0048718e
mov ecx, eax
mov dword [esi + 0x52c], eax
call fcn.004871cd
mov ecx, dword [esi + 0x500]
mov edi, eax
mov edx, edi
call fcn.004872c8
mov ecx, dword [esi + 0x52c]
call fcn.0048726a
test edi, edi
je 0x4840ec
mov eax, dword [edi + 8]
test eax, eax
je 0x4840d6
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.00481286
or dword [edi + 0x1c], 0xffffffff
push 1
push edi
call fcn.005e7dd0
pop ecx
pop ecx
mov ecx, dword [esi + 0x504]
call fcn.00487407
test eax, eax
jg 0x484095
xor edi, edi
inc dword [esi + 0x510]
lea eax, [esp + 0x20]
push edi
push dword [esi + 0x2e4]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0x130]
mov dword [ebp], edi
push eax
lea eax, [esp + 0x238]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.00481cf8
push dword [ebp]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x248]
push eax
mov dword [esi + 0x530], eax
mov ecx, esi
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push eax
call fcn.00481af8
add esp, 0x30
mov ebx, eax
inc dword [esi + 0x514]
cmp ebx, 0xffffffff
jne 0x484183
mov dword [esp + 0x228], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x500]
call fcn.0048718e
mov dword [esi + 0x52c], eax
test eax, eax
je 0x4841ff
mov ecx, dword [esi + 0x52c]
call fcn.004871cd
mov edi, eax
test edi, edi
je 0x4841fd
mov eax, dword [edi + 4]
test eax, eax
je 0x4841cc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x230]
push ecx
push ebx
push edi
call eax
add esp, 0x14
mov ecx, dword [esi + 0x52c]
call fcn.00487169
mov eax, dword [eax]
test eax, eax
je 0x4841e8
push dword [esi + 0x52c]
push edi
call eax
pop ecx
pop ecx
mov ecx, dword [esi + 0x52c]
call fcn.004871b8
mov dword [esi + 0x52c], eax
test eax, eax
jne 0x484198
xor edi, edi
lea ebx, [esi + 0x2e8]
cmp dword [esi], edi
je 0x483faa
xor ebp, ebp
inc ebp
cmp dword [esi + 0x518], edi
je 0x484224
push dword [esi + 0x520]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x4fc]
test ecx, ecx
je 0x484270
call fcn.0048718e
jmp 0x484259
mov ecx, edi
call fcn.004871cd
mov ebx, eax
test ebx, ebx
je 0x484252
push dword [ebx + 4]
push esi
call dword [ebx]
push ebp
push ebx
call fcn.005e7dd0
add esp, 0x10
mov ecx, edi
call fcn.004871b8
mov edi, eax
test edi, edi
jne 0x484235
mov ecx, dword [esi + 0x4fc]
call fcn.004873d2
mov dword [esi + 0x4fc], edi
mov ecx, dword [esi + 0x500]
call fcn.0048718e
mov dword [esi + 0x52c], eax
test eax, eax
je 0x484292
mov ecx, eax
call fcn.004871b8
mov dword [esi + 0x52c], eax
mov dword [esi], ebp
cmp dword [esi + 0x52c], edi
je 0x4842e4
mov ecx, dword [esi + 0x52c]
call fcn.004871cd
mov edi, eax
test edi, edi
je 0x4842e2
mov eax, dword [edi + 8]
test eax, eax
je 0x4842b8
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.00481286
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005e7dd0
pop ecx
pop ecx
mov ecx, dword [esi + 0x52c]
call fcn.0048726a
mov dword [esi + 0x52c], eax
test eax, eax
jne 0x48429c
xor edi, edi
mov eax, edi
mov dword [esp + 0x10], eax
mov ecx, dword [esi + eax*4 + 0x2e8]
test ecx, ecx
je 0x484309
cmp dword [esi + eax*4 + 0x3e8], edi
jne 0x484309
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x40
jl 0x4842ea
mov ecx, dword [esi + 0x2e4]
call fcn.004873d2
mov eax, dword [0x72a330]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov ecx, dword [esi + 0x500]
mov dword [0x72a330], eax
call fcn.0048718e
mov dword [esi + 0x52c], eax
test eax, eax
je 0x484372
mov ecx, eax
call fcn.004871cd
mov edi, eax
test edi, edi
je 0x484372
push edi
call dword [edi + 8]
mov ecx, dword [edi + 0x18]
call fcn.00481286
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005e7dd0
add esp, 0xc
and dword [esi + 0x4f4], 0
mov ecx, dword [esi + 0x500]
call fcn.004873d2
mov ecx, dword [esi + 0x504]
call fcn.0048718e
jmp 0x4843c6
mov ecx, dword [esi + 0x52c]
call fcn.004871cd
mov edi, eax
test edi, edi
je 0x4843d0
mov eax, dword [edi + 8]
test eax, eax
je 0x4843a6
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.00481286
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005e7dd0
pop ecx
pop ecx
mov ecx, dword [esi + 0x52c]
call fcn.004871b8
mov dword [esi + 0x52c], eax
test eax, eax
jne 0x48438a
mov ecx, dword [esi + 0x504]
call fcn.004873d2
mov ecx, dword [esi + 0x508]
test ecx, ecx
je 0x4843ef
push 0
xor edx, edx
call fcn.00487591
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [0x72a32c], ebp
jne 0x484451
push dword [0x72a338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x72a314], 0
je 0x484451
push 0x1081
push 0x72082c
push 0x72a338
push 0x720848
lea eax, [esp + 0x33c]
push 0x200
push eax
call fcn.0040117f
push 0
push dword [0x72a33c]
lea eax, [esp + 0x34c]
push eax
call dword [0x72a314]
add esp, 0x24
dec dword [0x72a32c]
push ebp
push esi
call fcn.005e7dd0
pop ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x520]
pop esi
xor ecx, esp
call fcn.005b35b0
add esp, 0x520
ret