Function at 0x48ab6b
Capabilities:
Create thread

Disassembly:
sub esp, 0x534
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x48b0c4
xor edi, edi
cmp dword [esi + 0x530], edi
jne 0x48ab9c
call fcn.0048aada
xor ebp, ebp
mov dword [esp + 0x230], edi
inc ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x128], edi
cmp dword [esi], edi
jne 0x48ae54
cmp dword [esi + 0x528], edi
jne 0x48abd7
push edi
push edi
push esi
push 0x48960d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x524], eax
cmp dword [esi], edi
jne 0x48ae54
lea ebx, [esi + 0x2f4]
lea ebp, [esi + 0x4fc]
cmp dword [esi + 0x518], 2
mov dword [esp + 0x230], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x128], edi
jne 0x48ac0c
mov dword [esi + 0x518], edi
mov ecx, dword [esi + 0x50c]
call fcn.0048dfc9
mov dword [esi + 0x534], 0x5265c00
jmp 0x48ac9d
mov ecx, dword [esi + 0x538]
call fcn.0048e018
test eax, eax
je 0x48acab
cmp dword [eax], edi
je 0x48ac72
mov ecx, dword [esi + 0x534]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x23c]
push ecx
push eax
call dword [eax]
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, dword [esi + 0x534]
jge 0x48ac72
mov dword [esi + 0x534], eax
mov ecx, dword [esi + 0x538]
call fcn.0048dfa4
mov eax, dword [eax + 4]
test eax, eax
jle 0x48ac92
cmp eax, dword [esi + 0x534]
jge 0x48ac92
mov dword [esi + 0x534], eax
mov ecx, dword [esi + 0x538]
call fcn.0048dff3
mov dword [esi + 0x538], eax
test eax, eax
jne 0x48ac23
mov eax, dword [esi + 0x534]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esi + 0x510]
mov dword [esp + 0x18], eax
imul eax, edx, 0x3e8
mov dword [esp + 0x1c], eax
call fcn.0048e252
test eax, eax
jle 0x48ad3e
mov ecx, dword [esi + 0x510]
call fcn.0048dfc9
mov ecx, eax
mov dword [esi + 0x538], eax
call fcn.0048e018
mov ecx, dword [esi + 0x50c]
mov edi, eax
mov edx, edi
call fcn.0048e113
mov ecx, dword [esi + 0x538]
call fcn.0048e0b5
test edi, edi
je 0x48ad2d
mov eax, dword [edi + 8]
test eax, eax
je 0x48ad17
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.004876b9
or dword [edi + 0x1c], 0xffffffff
push 1
push edi
call fcn.005f5a60
pop ecx
pop ecx
mov ecx, dword [esi + 0x510]
call fcn.0048e252
test eax, eax
jg 0x48acd6
xor edi, edi
inc dword [esi + 0x51c]
lea eax, [esp + 0x20]
push edi
push dword [esi + 0x2f0]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0x134]
mov dword [ebp], edi
push eax
lea eax, [esp + 0x240]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.00488710
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24c]
add esp, 0x1c
mov dword [esi + 0x53c], eax
mov ecx, esi
push dword [ebp]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004881ea
add esp, 0x14
mov ebx, eax
inc dword [esi + 0x520]
cmp ebx, 0xffffffff
jne 0x48adc7
mov dword [esp + 0x230], edi
mov dword [esp + 0x128], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x50c]
call fcn.0048dfc9
mov dword [esi + 0x538], eax
test eax, eax
je 0x48ae43
mov ecx, dword [esi + 0x538]
call fcn.0048e018
mov edi, eax
test edi, edi
je 0x48ae41
mov eax, dword [edi + 4]
test eax, eax
je 0x48ae10
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x238]
push ecx
push ebx
push edi
call eax
add esp, 0x14
mov ecx, dword [esi + 0x538]
call fcn.0048dfa4
mov eax, dword [eax]
test eax, eax
je 0x48ae2c
push dword [esi + 0x538]
push edi
call eax
pop ecx
pop ecx
mov ecx, dword [esi + 0x538]
call fcn.0048dff3
mov dword [esi + 0x538], eax
test eax, eax
jne 0x48addc
xor edi, edi
lea ebx, [esi + 0x2f4]
cmp dword [esi], edi
je 0x48abeb
xor ebp, ebp
inc ebp
cmp dword [esi + 0x524], edi
je 0x48ae68
push dword [esi + 0x52c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x508]
test ecx, ecx
je 0x48aeb4
call fcn.0048dfc9
jmp 0x48ae9d
mov ecx, edi
call fcn.0048e018
mov ebx, eax
test ebx, ebx
je 0x48ae96
push dword [ebx + 4]
push esi
call dword [ebx]
push ebp
push ebx
call fcn.005f5a60
add esp, 0x10
mov ecx, edi
call fcn.0048dff3
mov edi, eax
test edi, edi
jne 0x48ae79
mov ecx, dword [esi + 0x508]
call fcn.0048e21d
mov dword [esi + 0x508], edi
mov ecx, dword [esi + 0x50c]
call fcn.0048dfc9
mov dword [esi + 0x538], eax
test eax, eax
je 0x48aed6
mov ecx, eax
call fcn.0048dff3
mov dword [esi + 0x538], eax
mov dword [esi], ebp
cmp dword [esi + 0x538], edi
je 0x48af28
mov ecx, dword [esi + 0x538]
call fcn.0048e018
mov edi, eax
test edi, edi
je 0x48af26
mov eax, dword [edi + 8]
test eax, eax
je 0x48aefc
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.004876b9
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005f5a60
pop ecx
pop ecx
mov ecx, dword [esi + 0x538]
call fcn.0048e0b5
mov dword [esi + 0x538], eax
test eax, eax
jne 0x48aee0
xor edi, edi
mov eax, edi
mov dword [esp + 0x10], eax
mov ecx, dword [esi + eax*4 + 0x2f4]
test ecx, ecx
je 0x48af4d
cmp dword [esi + eax*4 + 0x3f4], edi
jne 0x48af4d
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 0x48af2e
mov ecx, dword [esi + 0x2f0]
call fcn.0048e21d
mov eax, dword [0x76a4ec]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov ecx, dword [esi + 0x50c]
mov dword [0x76a4ec], eax
call fcn.0048dfc9
mov dword [esi + 0x538], eax
test eax, eax
je 0x48afb6
mov ecx, eax
call fcn.0048e018
mov edi, eax
test edi, edi
je 0x48afb6
push edi
call dword [edi + 8]
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.004876b9
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005f5a60
and dword [esi + 0x500], 0
pop ecx
pop ecx
mov ecx, dword [esi + 0x50c]
call fcn.0048e21d
mov ecx, dword [esi + 0x510]
call fcn.0048dfc9
jmp 0x48b00a
mov ecx, dword [esi + 0x538]
call fcn.0048e018
mov edi, eax
test edi, edi
je 0x48b014
mov eax, dword [edi + 8]
test eax, eax
je 0x48afea
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x18]
call fcn.004876b9
or dword [edi + 0x1c], 0xffffffff
push ebp
push edi
call fcn.005f5a60
pop ecx
pop ecx
mov ecx, dword [esi + 0x538]
call fcn.0048dff3
mov dword [esi + 0x538], eax
test eax, eax
jne 0x48afce
mov ecx, dword [esi + 0x510]
call fcn.0048e21d
cmp dword [esi + 0xc], 0
je 0x48b03f
cmp dword [esi + 8], 0
je 0x48b03f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x48b037
push eax
call dword [eax + 0x24]
pop ecx
mov ecx, dword [esi + 8]
call fcn.00491cec
mov ecx, dword [esi + 0x514]
test ecx, ecx
je 0x48b053
push 0
xor edx, edx
call fcn.0048e3dc
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [0x76a508], ebp
jne 0x48b0b5
push dword [0x76a510]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x76a4e4], 0
je 0x48b0b5
push 0x111b
push 0x757748
push 0x76a510
push 0x757764
lea eax, [esp + 0x348]
push 0x200
push eax
call fcn.0040117f
push 0
push dword [0x76a514]
lea eax, [esp + 0x358]
push eax
call dword [0x76a4e4]
add esp, 0x24
dec dword [0x76a508]
push ebp
push esi
call fcn.005f5a60
pop ecx
pop ecx
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x534
ret