Function at 0x40c2f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45de4b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xe8]
mov ecx, dword [edi + 0xec]
mov edx, dword [edi + 0xf0]
mov dword [esp + 0x18], eax
mov al, byte [edi + 0xf8]
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x17], al
call fcn.00413390
mov dword [esp + 0x60], 0
mov esi, dword [edi + 0x24]
mov ecx, 0x469bf4
lea ebx, [esp + 0x34]
call fcn.004133b0
mov ecx, dword [edi + 0x68]
push ecx
push str.nodeId
call fcn.00413420
mov edx, dword [esp + 0x18]
push edx
push str.downSize
call fcn.00413420
mov eax, dword [esp + 0x1c]
push eax
push str.downRate_Avg
call fcn.00413420
mov ecx, dword [esp + 0x20]
push ecx
push str.downRate_Top
call fcn.00413420
mov esi, dword [edi + 8]
mov ecx, str.userIp
call fcn.004133b0
mov edx, dword [edi + 0xc]
push edx
push 0x469be0
call fcn.00413420
mov esi, str.CLIENT
mov ecx, str.testSpeedType
call fcn.004133b0
xor eax, eax
cmp byte [esp + 0x17], al
sete al
push eax
push str.isClosedApp
call fcn.00413420
mov esi, 0x469938
mov ecx, str.startTime
call fcn.004133b0
mov ecx, str.endTime
call fcn.004133b0
mov ecx, dword [edi + 0x64]
push ecx
push str.passageId
call fcn.00413420
push 0xec
call fcn.00446372
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x60], 1
test esi, esi
je 0x40c45c
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov eax, ebx
push eax
call fcn.00413630
mov byte [esp + 0x70], 2
mov eax, dword [edi + 0x150]
push 0
push edi
push eax
push esi
mov byte [esp + 0x80], 1
call fcn.00413760
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x40c468
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x60], 0
mov edi, ebx
mov dword [esp + 0x20], ebx
call fcn.00414680
mov esi, dword [ebp + 8]
mov dword [ebx + 0x14], 0xe
mov eax, 0x2710
add esi, 0x164
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
cmp dword [esi + 0x78], 0
mov dword [esp + 0x1c], esi
je 0x40c598
cmp dword [ebx + 0x10], 0
jne 0x40c598
cmp dword [esi + 0x60], 0
lea edi, [esi + 0x60]
mov dword [esp + 0x28], edi
je 0x40c598
push ebx
push esi
call fcn.00410f50
test eax, eax
jne 0x40c598
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 4]
lea edi, [esi + 8]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov dword [esp + 0x3c], eax
call fcn.00411e70
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.00411f20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esi + 0x20], 0x64
jbe 0x40c555
mov eax, dword [edi + 0x14]
mov edx, dword [eax]
mov eax, dword [edi]
lea esi, [esp + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.00411ac0
mov ecx, dword [eax]
test ecx, ecx
je 0x40c53b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea ebx, [esp + 0x34]
call fcn.00411940
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x80], 0xffffffff
jne 0x40c598
push 0
push 0
push esi
push 0x410a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xe
mov dword [esp + 0x60], 0xffffffff
lea eax, [esp + 0x34]
call fcn.004133a0
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4