Function at 0x40a060
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x532a58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x587770]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
call fcn.00416a2a
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a0a7
push 0x80004005
call fcn.00401ee0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], esi
call fcn.00416a2a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a0d8
push 0x80004005
call fcn.00401ee0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 1
call fcn.00416a2a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a10a
push 0x80004005
call fcn.00401ee0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x84], 2
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x59e3b8]
cmp eax, esi
je 0x40a143
call eax
push 0xc
push str.Config......
lea ecx, [esp + 0x18]
call fcn.00401b00
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push eax
push 0x465
push ecx
call edi
mov edx, dword [0x59e368]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
cmp edx, esi
je 0x40a185
push esi
push eax
push ecx
call edx
add esp, 0xc
mov esi, eax
mov ecx, dword [0x59e374]
movzx eax, byte [ebx + 0x3c]
test ecx, ecx
jne 0x40a197
xor eax, eax
jmp 0x40a19f
push eax
push 1
call ecx
add esp, 8
mov ecx, dword [0x59e36c]
and esi, eax
mov eax, dword [ebx + 0x34]
test ecx, ecx
jne 0x40a1b2
xor eax, eax
jmp 0x40a1b8
push eax
call ecx
add esp, 4
mov ecx, dword [0x59e370]
and esi, eax
mov eax, dword [ebx + 0x38]
test ecx, ecx
jne 0x40a1cb
xor eax, eax
jmp 0x40a1d1
push eax
call ecx
add esp, 4
and esi, eax
lea ecx, [esp + 0x10]
jne 0x40a288
push 6
push str.Fail_r_n
call fcn.00401b00
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x14]
push 3
push esi
push 0x465
push edx
call edi
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a24b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 9
push str.Success_r_n
call fcn.00401b00
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x14]
push 2
push ecx
push 0x465
push edx
call edi
push 0x10
push str.Download......_r_n
lea ecx, [esp + 0x18]
call fcn.00401b00
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
push 2
push eax
push 0x465
push ecx
call edi
lea eax, [ebx + 0x18]
push 0x59fb00
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040abf0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 3
call fcn.004017d0
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x34]
mov edi, dword [0x59fafc]
call fcn.0040bff0
mov edi, dword [esp + 0x14]
mov edx, dword [0x59fafc]
push edi
call fcn.0040a6d0
mov edx, dword [0x59fafc]
add esp, 4
mov esi, eax
call fcn.0040a740
mov edx, dword [0x59fafc]
and esi, eax
call fcn.0040a7b0
and esi, eax
jne 0x40a39a
push 0x1c
push str.Fail__please_check_connect_r_n
lea ecx, [esp + 0x18]
call fcn.00401b00
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
push 3
push esi
push 0x465
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a217
mov esi, dword [ebx + 0x34]
mov edi, dword [0x59fb10]
call fcn.0040bff0
mov eax, dword [ebx + 0x1c]
mov edx, dword [0x59fb10]
push eax
call fcn.0040a6d0
mov edx, dword [0x59fb10]
add esp, 4
mov esi, eax
call fcn.0040a740
mov edx, dword [0x59fb10]
and esi, eax
call fcn.0040a7b0
and esi, eax
jne 0x40a41d
push str.Fail_r_n
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
push 3
push esi
push 0x465
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a217
push 0x59fb0c
lea eax, [ebx + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040abf0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 4
call fcn.004017d0
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a46d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x34]
mov edi, dword [0x59fb08]
call fcn.0040bff0
mov edi, dword [esp + 0x14]
mov edx, dword [0x59fb08]
push edi
call fcn.0040a6d0
mov edx, dword [0x59fb08]
add esp, 4
mov esi, eax
call fcn.0040a740
mov edx, dword [0x59fb08]
and esi, eax
call fcn.0040a7b0
and esi, eax
jne 0x40a4f2
mov edx, dword [0x59fb10]
mov ecx, dword [ebx + 0x34]
push edx
call fcn.0040a820
add esp, 4
push str.Fail_r_n
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
push 3
push esi
push 0x465
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x80], 1
lea eax, [edi - 0x10]
jmp 0x40a20a
push 0x59fb04
lea eax, [ebx + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040abf0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 5
call fcn.004017d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 2
call fcn.00401fb0
mov esi, dword [ebx + 0x34]
mov edi, dword [0x59fafc]
call fcn.0040bff0
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [0x59fafc]
call fcn.0040a6d0
mov edx, dword [0x59fafc]
add esp, 4
mov esi, eax
call fcn.0040a740
mov edx, dword [0x59fafc]
and esi, eax
call fcn.0040a7b0
and esi, eax
jne 0x40a5a4
mov eax, dword [0x59fb10]
mov ecx, dword [ebx + 0x34]
push eax
call fcn.0040a820
add esp, 4
push str.Fail_r_n
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x14]
push 3
push ecx
push 0x465
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a6a3
push str.Success_r_n
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push eax
push 0x465
push ecx
call esi
push str.Finish...100_
lea ecx, [esp + 0x1c]
call fcn.00401bf0
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x14]
push edx
push 0x64
push 0x466
push eax
call esi
push str.Finish_r_n
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x14]
push 2
push ecx
push 0x465
push edx
call esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sbb edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fild qword [esp + 0x34]
lea ecx, [esp + 0x1c]
fdivp st(1)
fstp qword [esp + 0x3c]
call fcn.00401d40
fld qword [esp + 0x3c]
sub esp, 8
mov byte [esp + 0x88], 6
fstp qword [esp]
lea eax, [esp + 0x24]
push str.Time:__.1f_s_r_n
push eax
call fcn.004034d0
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004017d0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
push 2
push edx
push 0x465
push eax
call esi
push 0x5653e4
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00401fb0
lea ecx, [esp + 0x14]
call fcn.00401fb0
lea ecx, [esp + 0x18]
call fcn.00401fb0
lea ecx, [esp + 0x10]
call fcn.00401fb0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret