Function at 0x427620
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0xa4
push 0xffffffffffffffff
push 0x474da4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x48fe40]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 0xb8]
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 0x28]
call eax
test al, al
jne 0x4278b8
mov di, word [ebp + 0xac]
test di, di
je 0x4278b8
cmp dword [esi + 0x824], 0xffffffff
mov eax, dword [ebp + 0xb0]
mov dword [ebp - 0x10], eax
jne 0x4276c8
push ebx
push 1
push eax
mov ecx, 0x493670
call fcn.0042c1d0
mov dword [esi + 0x824], eax
cmp eax, 0xffffffff
je 0x4278b8
push eax
mov ecx, 0x493670
call fcn.0042c330
movzx eax, ax
test ax, ax
je 0x4276c8
mov dword [ebp - 0x10], eax
cmp word [esi + 8], 0
jne 0x4277dd
cmp word [esi + 0xa], di
jbe 0x4276dd
mov word [esi + 0xa], di
xor ecx, ecx
movzx ebx, di
mov eax, ebx
mov word [esi + 8], di
mov edx, 0x840
mov dword [ebp - 0x1c], ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0044e18c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x427739
push 0x4257b0
push 0x425360
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 0x840
push edi
call fcn.0044eac6
jmp 0x42773b
xor edi, edi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
mov dword [esi + 0x33c], edi
cmp ax, word [esi + 8]
jae 0x42779d
xor edi, edi
mov eax, dword [esi + 0x33c]
mov byte [edi + eax], 0
movzx eax, word [esi + 0x84a]
mov ecx, dword [esi + 0x33c]
movsd xmm0, qword [esi + 0x840]
add ecx, 0x18
push eax
movzx eax, word [esi + 0x848]
add ecx, edi
push eax
sub esp, 8
movsd qword [esp], xmm0
call fcn.0041c180
movzx eax, word [esi + 8]
inc ebx
add edi, 0x840
cmp ebx, eax
jb 0x427754
mov eax, dword [esi + 0x348]
test eax, eax
je 0x4277da
cmp eax, 0x200
jbe 0x4277d0
push dword [esi + 0x340]
call fcn.0044e195
add esp, 4
mov dword [esi + 0x348], 0
mov dword [esi + 0x340], 0
mov dword [esi + 0x344], 0
mov ebx, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x427906
push 0x400
lea eax, [esi + 0x3dc]
push 0
push eax
call fcn.00450230
mov eax, dword [ebp + 0xb4]
add esp, 0xc
mov dword [esi + 0x7f0], 0
mov ecx, esi
mov dword [esi + 0x7ec], 0
mov dword [esi + 0x7e8], 0
mov dword [esi + 0x7e4], 0
mov byte [esi + 0x364], 0
mov byte [esi + 4], 0
mov dword [esi + 0x820], eax
call fcn.00426020
lea eax, [ebp]
mov ecx, 0x493670
push eax
call fcn.0042c390
mov eax, dword [ebp - 0x10]
mov word [esi + 0x234], ax
test ebx, ebx
je 0x427867
cmp byte [ebx], 0
je 0x427867
push ebx
jmp 0x42786b
lea eax, [ebp]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x230], eax
cmp byte [esi + 5], 0
jne 0x427906
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push esi
push 0x42c050
push 0x200000
push 0
call fcn.0045bd32
add esp, 0x18
mov dword [esi + 0x374], eax
test eax, eax
jne 0x4278df
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x24]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.0044e4cb
lea esp, [ebp + 0xa4]
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 5], 0
mov dword [esi + 0x374], 0
jne 0x427906
push 0xa
call fcn.0042fae0
add esp, 4
cmp byte [esi + 5], 0
je 0x4278f6
xor edi, edi
cmp dword [esi + 0x3bc], edi
jbe 0x427928
mov eax, dword [esi + 0x3b8]
push esi
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
inc edi
cmp edi, dword [esi + 0x3bc]
jb 0x427910
mov al, 1
jmp 0x4278ba