Function at 0x40766e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push dword [ebp - 4]
call fcn.0040114e
mov esi, dword [ebp + 0xc]
push 0x14a8
push 0
push esi
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
push 0xff
lea ecx, [ebx + 0xbe4]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
and byte [esi + 0x103], 0
lea edi, [esi + 0x103]
lea eax, [esi + 4]
add esp, 0x20
cmp byte [eax], 0
jne 0x4076ef
lea ecx, [ebx + 0x4b5]
push 0xff
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
and byte [edi], 0
cmp dword [ebx + 0xcf0], 0
jne 0x40773d
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_strlen
mov edi, eax
mov dword [esp], str.212.27.33.19
call sub.MSVCRT.dll_strlen
add edi, eax
pop ecx
cmp edi, 0x100
jae 0x40773d
cmp byte [esi + 4], 0
lea edi, [esi + 4]
je 0x407730
push 0x40d16c
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push str.212.27.33.19
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp - 8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esi + 0x104]
push str.begin:1_C__08X_r_n
push eax
call edi
add esp, 0xc
lea eax, [ebx + 0x101c]
push eax
lea eax, [esi + 0x104]
push dword [ebx + 0x1018]
push dword [ebx + 0x1014]
push dword [ebx + 0xc]
push str.atype:_d__08X__d__s_r_n
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi + 0x104]
push eax
call edi
add esp, 0x18
lea eax, [ebx + 0x5b5]
push eax
lea eax, [esi + 0x104]
push str.ref:_s_r_n
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi + 0x104]
push eax
call edi
mov eax, dword [ebx + 0x1008]
and byte [ebp - 0x20], 0
add esp, 0xc
test byte [eax], 4
je 0x4077d4
movzx eax, word [eax + 6]
push eax
lea eax, [ebp - 0x20]
push 0x40df24
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0x1008]
lea ebx, [esi + 0x104]
movzx eax, word [eax + 4]
push eax
push dword [0x40dd4c]
push str.ver:_08X__u__s_r_n
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi + 0x104]
push eax
call edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 0x18
mov ecx, dword [eax + 0x10]
push dword [eax]
inc ecx
push dword [eax + 4]
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
add eax, 0x76c
push ecx
push eax
push str.ltime:_04d_02d_02d_02d_02d_02d_r_n
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi + 0x104]
push eax
call edi
push str.end:_r_n
push ebx
call sub.MSVCRT.dll_strcat
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
call fcn.004052db
add esp, 0x34
push eax
push str._08X
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi + 0x104]
push eax
call edi
push ebx
call sub.MSVCRT.dll_strlen
mov dword [esi + 0x504], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
or dword [esi + 0x90c], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x404e5d
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4078b1
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret