Function at 0x462440
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
nop dword [eax + eax]
cmp dword [edi*4 + 0x6a1610], 0
je 0x46248a
inc edi
cmp edi, 0xc8
jb 0x462450
push str.Too_many_hanging_threads
call fcn.004631b0
mov ecx, dword [ebp + 8]
add esp, 4
test ecx, ecx
je 0x4626c2
mov eax, dword [ecx]
push 1
call dword [eax]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
push 0
push 0
push ebx
push 0x462b30
push 0
push 0
mov dword [edi*4 + 0x6a1610], ebx
call fcn.005b9f5c
mov esi, eax
add esp, 0x18
mov eax, dword [ebx + 4]
test eax, eax
je 0x4624ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], esi
test esi, esi
je 0x4626af
cmp esi, 0xffffffff
je 0x4626af
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
lea ecx, [ebx + 8]
mov esi, eax
call fcn.00462420
test al, al
je 0x462601
mov dword [edi*4 + 0x6a1610], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, esi
cmp eax, esi
jae 0x462503
dec edi
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x46250f
jmp dword [eax*4 + 0x4626cc]
cmp byte [ebx + 0x1b], 0
lea esi, [ebx + 0x10]
jge 0x462521
mov esi, dword [esi]
mov eax, dword [ebx + 0x1c]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x14]
push str._u._u._u
push dword [ebp - 5]
push eax
call fcn.0043f2f0
test byte [ebp - 9], 0x80
lea ecx, [ebp - 0x14]
mov eax, 0x10624dd3
cmovne ecx, dword [ebp - 0x14]
mul edi
shr edx, 6
imul eax, edx, 0x3e8
sub edi, eax
push edi
push edx
push esi
push ecx
push str.Read_version__s_of___S__for__u._03u_seconds
call fcn.004631b0
add esp, 0x2c
test byte [ebp - 9], 0x80
je 0x462581
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x462581
push eax
call fcn.0044d750
add esp, 4
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov byte [ebp - 1], 1
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x1b], 0
lea ecx, [ebx + 0x10]
jge 0x4625a8
mov ecx, dword [ecx]
push eax
push ecx
push str.Couldnt_get_version_info_size_of__S__error__d
jmp 0x4625e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x1b], 0
lea ecx, [ebx + 0x10]
jge 0x4625c2
mov ecx, dword [ecx]
push eax
push ecx
push str.Couldnt_get_version_info_of__S__error__d
jmp 0x4625e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x1b], 0
lea ecx, [ebx + 0x10]
jge 0x4625dc
mov ecx, dword [ecx]
push eax
push ecx
push str.Couldnt_get_version_from__S__error__d
call fcn.004631b0
add esp, 0xc
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov byte [ebp - 1], 0
call dword [edx]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 8]
call fcn.00462410
mov esi, dword [ebp + 0xc]
lea ebx, [ebx + 0x10]
mov eax, 0x10624dd3
mul esi
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub esi, eax
je 0x46265c
cmp byte [ebx + 0xb], 0
jge 0x46262d
mov ebx, dword [ebx]
push ebx
push str.get_version_from__S
push dword [ebp - 5]
lea eax, [ebp - 0x14]
push eax
call fcn.0043f2f0
test byte [ebp - 9], 0x80
lea eax, [ebp - 0x14]
push esi
cmovne eax, dword [ebp - 0x14]
push edi
push eax
push str.Couldnt__s_during__u._03u_seconds
call fcn.004631b0
add esp, 0x20
jmp 0x462690
cmp byte [ebx + 0xb], 0
jge 0x462664
mov ebx, dword [ebx]
push ebx
push str.get_version_from__S
push dword [ebp - 5]
lea eax, [ebp - 0x14]
push eax
call fcn.0043f2f0
test byte [ebp - 9], 0x80
lea eax, [ebp - 0x14]
push edi
cmovne eax, dword [ebp - 0x14]
push eax
push str.Couldnt__s_during__u_seconds
call fcn.004631b0
add esp, 0x1c
test byte [ebp - 9], 0x80
je 0x4626c2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4626c2
push eax
call fcn.0044d750
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
push 1
mov dword [edi*4 + 0x6a1610], 0
call dword [eax]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret