Function at 0x406f30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x42890e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x34], eax
xor ebx, ebx
mov dword [esp + 0xd8], ebx
mov esi, 0xf
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
push 0xffffffffffffffff
mov byte [esp + 0xdc], 1
mov edx, dword [esp + 0xf8]
push ebx
lea eax, [esp + 0xe8]
mov dword [esp + 0x88], ecx
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x90], edx
call fcn.00401c00
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0xd8], 2
mov esi, dword [esp + 0xa8]
add esi, 0x2e
cmp esi, ebx
ja 0x406ffd
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x40]
call fcn.00401d40
jmp 0x407009
push ebx
mov eax, esi
lea edi, [esp + 0x3c]
call fcn.00406a00
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x407018
lea eax, [esp + 0x3c]
push esi
lea ecx, [esp + 0x84]
call fcn.00406c90
push 0x1000
call fcn.00415dc8
add esp, 4
push 0x1000
mov ebp, eax
call fcn.00415dc8
add esp, 4
push 0x1000
push ebx
push ebp
mov esi, eax
call fcn.00417ce0
add esp, 0xc
push 0x1000
push ebx
push esi
call fcn.00417ce0
mov ebx, 3
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], vtable.CSocketBase.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.00407580
mov byte [esp + 0xd8], bl
mov edx, dword [esp + 0x4c]
mov eax, 0x1f40
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
xor eax, eax
mov ecx, 0x1388
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x7c], 0xa
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x1c], edi
mov dword [esi], edx
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x4070e9
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push ecx
push eax
lea edx, [esi + 4]
push edx
call fcn.00418300
mov eax, dword [esp + 0x58]
add esp, 0xc
push edi
push edi
lea edx, [esp + 0x24]
push edx
push 0x406df0
push edi
add eax, 4
lea ecx, [esp + 0x68]
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x1000
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x4071f4
push ebp
call fcn.0041682d
add esp, 4
push esi
call fcn.0041682d
mov eax, dword [esp + 0x5c]
add esp, 4
mov dword [esp + 0x54], vtable.CSocketBase.0
cmp eax, 0xffffffff
je 0x407172
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x407190
mov eax, dword [esp + 0x3c]
push eax
call fcn.004160ce
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp dword [esp + 0xac], esi
jb 0x4071bb
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004160ce
add esp, 4
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xf8], esi
jb 0x4071ea
mov edx, dword [esp + 0xe4]
push edx
call fcn.004160ce
add esp, 4
mov eax, 0x12d
jmp 0x4074dd
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x61a8
push ebx
call edi
cmp eax, 0x102
jne 0x4072e7
mov eax, dword [esp + 0x58]
cmp eax, 0xffffffff
je 0x407225
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x58], 0xffffffff
push 0xffffffffffffffff
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0041682d
add esp, 4
push esi
call fcn.0041682d
mov eax, dword [esp + 0x5c]
add esp, 4
mov dword [esp + 0x54], vtable.CSocketBase.0
cmp eax, 0xffffffff
je 0x407263
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x407281
mov eax, dword [esp + 0x3c]
push eax
call fcn.004160ce
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp dword [esp + 0xac], esi
jb 0x4072ae
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004160ce
add esp, 4
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xf8], esi
jb 0x4072dd
mov edx, dword [esp + 0xe4]
push edx
call fcn.004160ce
add esp, 4
mov eax, 0x12e
jmp 0x4074dd
lea eax, [esp + 0x18]
push eax
xor edi, edi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041682d
add esp, 4
cmp dword [esp + 0x18], edi
jne 0x407436
mov eax, dword [esp + 0x28]
cmp eax, edi
jle 0x407436
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
mov byte [esp + 0xd8], 4
ja 0x407354
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xb8]
call fcn.00401d40
jmp 0x407361
push edi
lea edi, [esp + 0xb4]
call fcn.00406a00
mov eax, dword [esp + 0xb4]
mov esi, 0x10
cmp dword [esp + 0xc8], esi
jae 0x40737d
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0x28]
push ecx
push ebp
push eax
call fcn.00418300
add esp, 0xc
push ebp
call fcn.0041682d
mov ecx, dword [esp + 0xb8]
add esp, 4
cmp dword [esp + 0xc8], esi
jae 0x4073ac
lea ecx, [esp + 0xb4]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x34]
call fcn.00406d40
lea ecx, [esp + 0xb0]
test al, al
jne 0x407400
call fcn.004019b0
lea ecx, [esp + 0x54]
call fcn.00407550
lea ecx, [esp + 0x38]
call fcn.004019b0
lea esi, [esp + 0x80]
call fcn.004043b0
lea ecx, [esp + 0xe0]
call fcn.004019b0
mov eax, 0x133
jmp 0x4074dd
call fcn.004019b0
lea ecx, [esp + 0x54]
call fcn.00407550
lea ecx, [esp + 0x38]
call fcn.004019b0
lea esi, [esp + 0x80]
call fcn.004043b0
lea ecx, [esp + 0xe0]
call fcn.004019b0
xor eax, eax
jmp 0x4074dd
push ebp
call fcn.0041682d
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x54], vtable.CSocketBase.0
cmp eax, 0xffffffff
je 0x407463
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x407481
mov edx, dword [esp + 0x3c]
push edx
call fcn.004160ce
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp dword [esp + 0xac], esi
jb 0x4074ac
mov eax, dword [esp + 0x98]
push eax
call fcn.004160ce
add esp, 4
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xf8], esi
jb 0x4074db
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.004160ce
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00415dd3
add esp, 0xc8
ret