Function at 0x41f390
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
push esi
push edi
mov esi, eax
je 0x41f666
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esi]
test edi, edi
mov dword [esp + 0x10], edi
je 0x41f3d2
movzx eax, byte [edi]
cmp eax, 0x80
jae 0x41f3d2
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx + 4], 5
jge 0x41f3fd
push esi
lea esi, [esp + 0x24]
call fcn.0041e9f0
mov esi, eax
add esp, 4
lea eax, [esp + 0x10]
call fcn.004010e0
lea edi, [esp + 0x20]
call fcn.00401070
mov edi, dword [esp + 0x10]
cmp byte [ebx + 0x28], 0
mov dword [esp + 0xc], 0
jne 0x41f5a8
lea edi, [esp + 0x20]
call fcn.0044e530
lea ecx, [esp + 0x20]
push ecx
push ecx
lea edi, [esp + 0x20]
call fcn.0044e530
add esp, 4
call fcn.0044e6d0
mov eax, dword [eax]
test eax, eax
je 0x41f449
lea ecx, [eax + 4]
test ecx, ecx
je 0x41f449
test eax, eax
je 0x41f445
add eax, 4
jmp 0x41f44e
xor eax, eax
jmp 0x41f44e
mov eax, 0x543bb1
push eax
lea edx, [esp + 0x10]
push str._Log_time:__s__n
push edx
call fcn.00413360
add esp, 0xc
lea edi, [esp + 0x20]
call fcn.00401070
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x2c], eax
push str.wininet.dll
mov eax, 0xb
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0044a090
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.0041eab0
add esp, 4
call fcn.00401070
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41f4d6
test dword [eax], 0xffffff00
je 0x41f4d6
add eax, 4
cmp byte [eax], 0
je 0x41f4d6
test eax, eax
jne 0x41f4c3
mov eax, 0x543bb1
push eax
lea ecx, [esp + 0x10]
push str.wininet.dll_version:__s_n
push ecx
call fcn.00413360
add esp, 0xc
mov eax, dword [ebx + 4]
xor edx, edx
cmp byte [ebx + 0x7c], dl
lea ecx, [esp + 0xc]
setne dl
push edx
push eax
push str.Log_level__d__log_faces__d_n
push ecx
call fcn.00413360
mov eax, dword [0x59d120]
xor edi, edi
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], edi
je 0x41f529
lea edx, [eax + 4]
test edx, edx
je 0x41f529
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f510
sub eax, esi
push edx
lea edi, [esp + 0x18]
call fcn.0044a090
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0042b860
test edi, edi
je 0x41f585
test dword [edi], 0xffffff00
je 0x41f585
cmp byte [edi + 4], 0
lea ecx, [edi + 4]
je 0x41f585
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41f585
test dword [eax], 0xffffff00
je 0x41f585
add eax, 4
cmp byte [eax], 0
je 0x41f585
test eax, eax
jne 0x41f568
mov eax, 0x543bb1
test ecx, ecx
jne 0x41f571
mov ecx, 0x543bb1
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_version__.2f_n
push edx
call fcn.00413360
add esp, 0x10
lea edi, [esp + 0x18]
mov byte [ebx + 0x28], 1
call fcn.00401070
lea edi, [esp + 0x14]
call fcn.00401070
lea edi, [esp + 0x20]
call fcn.00401070
mov edi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x2c]
push eax
lea eax, [esp + 0x10]
push str.__d_
push eax
call fcn.00413360
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x41f5de
push eax
lea ecx, [esp + 0x10]
push str.id__d:
push ecx
call fcn.00413360
add esp, 0xc
test edi, edi
je 0x41f604
cmp byte [edi + 4], 0
lea eax, [edi + 4]
je 0x41f604
cmp byte [eax + 1], 0
je 0x41f5fa
add eax, 1
cmp byte [eax + 1], 0
jne 0x41f5f1
cmp byte [eax], 0xa
sete al
test al, al
jne 0x41f614
push 0xa
lea edx, [esp + 0x14]
push edx
call fcn.00449ee0
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0041ecb0
cmp byte [ebx + 0x1c], 0
je 0x41f654
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41f637
add eax, 4
jmp 0x41f63c
mov eax, 0x543bb1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call esi
test edi, edi
lea eax, [edi + 4]
jne 0x41f651
mov eax, 0x543bb1
push eax
call esi
lea edi, [esp + 0xc]
call fcn.00401070
lea edi, [esp + 0x10]
call fcn.00401070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8