Function at 0x402d90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fa61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x4ec
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0xb9], 0
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x44c]
push ecx
lea edx, [ebp - 0x354]
push edx
mov eax, dword [ebp + 8]
add eax, 0xa
push eax
call fcn.00402bb0
add esp, 0x1c
cmp dword [ebp - 0x354], 0
je 0x40343a
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0xb4], eax
push 0x50
lea edx, [ebp - 0xb0]
push edx
push 3
mov eax, dword [0x41518c]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___thiscall_LogFile::BeginLog_wchar_t_const___bool_]
push 0x28
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
lea ecx, [ebp - 0x448]
call fcn.00403aa0
push eax
mov eax, dword [ebp + 8]
add eax, 0xa4
push eax
push 0x3f1
mov ecx, dword [0x41518c]
push ecx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x14
mov edx, dword [ebp + 8]
add edx, 0x124
push edx
push 0x3fb
mov eax, dword [0x41518c]
push eax
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xa
call sub.WINXX.dll_Ordinal_410
push eax
push 0x3f0
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x14
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jl 0x402f40
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 5
jg 0x402f40
push 0x50
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, 0x64
push ecx
mov edx, dword [0x41518c]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, 1
push ecx
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0x3f8]
push eax
call fcn.0040443b
add esp, 0xc
lea ecx, [ebp - 0x3f8]
push ecx
push 0x401
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa
push ecx
call fcn.00402b70
add esp, 8
movzx edx, al
test edx, edx
je 0x403413
lea ecx, [ebp - 0x4ec]
call fcn.00403bb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4dc]
call fcn.00403bb0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x1a]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x4d8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4e0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4e0]
cmp eax, dword [ebp - 0x4d8]
jge 0x402fd6
push 0
mov edx, dword [0x415190]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402fcc
jmp 0x402fd6
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402fa1
push 0
mov eax, dword [0x415190]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4033f0
lea ecx, [ebp - 0x4d0]
push ecx
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x4dc]
push ecx
lea edx, [ebp - 0x4ec]
push edx
call fcn.00401030
add esp, 0x14
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e8], 0
jne 0x403056
mov dword [ebp - 0x4d4], 0x3ef
lea eax, [ebp - 0x2d0]
push eax
push 0x3fa
mov ecx, dword [0x41518c]
push ecx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
jmp 0x4030e5
mov dword [ebp - 0x4d4], 0x3ec
cmp dword [ebp - 0x4e8], 0xffffffff
jne 0x403085
push 0x3ed
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
jmp 0x4030e5
cmp dword [ebp - 0x4e8], 0xfffffffe
jne 0x4030a9
push 0x3f3
mov eax, dword [0x41518c]
push eax
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
jmp 0x4030e5
mov dword [ebp - 0x4d4], 0x3ee
mov ecx, dword [ebp - 0x44c]
and ecx, 1
je 0x4030e5
mov edx, dword [ebp + 8]
add edx, 0x124
push edx
mov eax, dword [ebp + 8]
add eax, 0xa4
push eax
push 0x3fc
lea ecx, [ebp - 0x4dc]
push ecx
call fcn.004013e0
add esp, 0x10
push 0
lea ecx, [ebp - 0x4dc]
call fcn.00401fe0
movzx edx, al
test edx, edx
je 0x4033be
push 0
mov eax, dword [0x415190]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4033be
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00403ae0
movsx ecx, ax
mov dword [ebp - 0x4e4], ecx
cmp dword [ebp - 0x4e4], 0
je 0x4031e1
mov edx, dword [ebp - 0x44c]
and edx, 2
je 0x4031e1
mov dword [ebp - 0x4d4], 0x3ee
push 0
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00403b30
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00403ae0
cwde
test eax, eax
jne 0x4031bd
mov ecx, dword [ebp - 0x44c]
and ecx, 1
je 0x4031a2
push 0x3fd
lea edx, [ebp - 0x4dc]
push edx
call fcn.004013e0
add esp, 8
push 0x3fe
mov eax, dword [0x41518c]
push eax
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
jmp 0x4031e1
mov dword [ebp - 0x4d4], 0x3ec
push 0x400
mov ecx, dword [0x41518c]
push ecx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
cmp dword [ebp - 0xb8], 0
jle 0x4032a1
cmp dword [ebp - 0x4e4], 0
jne 0x403204
cmp dword [ebp - 0x4e8], 0
jle 0x4032a1
mov edx, dword [ebp - 0xb8]
imul edx, edx, 0x3c
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0x44c]
and eax, 4
je 0x40325a
cmp dword [ebp - 0x4e8], 0
jle 0x40325a
cmp dword [ebp - 0x4e4], 0
je 0x403249
mov ecx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00403b70
mov edx, dword [ebp - 0xb8]
neg edx
sub edx, 0xf
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00403b70
mov eax, dword [ebp - 0xb8]
cdq
xor eax, edx
sub eax, edx
cdq
mov ecx, 0x3c
idiv ecx
push eax
push 0x3ff
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
cmp dword [ebp - 0xc0], 0
jl 0x4033a8
cmp dword [ebp - 0x4e8], 0
jle 0x4033a8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
lea ecx, [ebp - 0x4dc]
call fcn.00401f60
mov ecx, eax
call fcn.00401b60
mov dword [ebp - 0x4f8], eax
mov edx, dword [ebp - 0x4f8]
mov dword [ebp - 0x4fc], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4fc]
call fcn.00401f60
mov ecx, eax
call fcn.00401cd0
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x4ed], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4f4]
call fcn.00401f90
movzx eax, byte [ebp - 0x4ed]
test eax, eax
je 0x403351
mov ecx, dword [ebp - 0xc0]
push ecx
push 0x402
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
jmp 0x403372
mov eax, dword [ebp - 0xc0]
push eax
push 0x403
mov ecx, dword [0x41518c]
push ecx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0x10
jmp 0x4033a1
mov dword [ebp - 4], 2
jmp 0x4033b7
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x4d4]
push ecx
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.00401000
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4dc]
call fcn.00401f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4ec]
call fcn.00401f90
jmp 0x40342d
push 0x3f2
mov edx, dword [0x41518c]
push edx
push 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___cdecl_LogFile::AddLog_struct_HINSTANCE_____unsigned_int_]
add esp, 0xc
push 0
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___thiscall_LogFile::EndLog_bool_]
mov al, byte [ebp - 0xb9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret