Function at 0x408154
Capabilities:
Accept command line arguments
Check for time delay via gettickcount

Disassembly:
mov eax, fcn.00401dd4
call fcn.00403e40
sub esp, 0x34
push ebx
push esi
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
jl 0x408325
push edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x30]
push edx
push ebx
push sub.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x4081b6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
jmp 0x4081da
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x30]
push edx
push ebx
push 0x402739
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x4081d4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
jl 0x408311
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebp + 0xc]
jle 0x4081ee
mov dword [ebp + 0xc], 0x80041008
jmp 0x408314
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push dword [ebp + 8]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x408314
cmp dword [ebp + 0x10], ebx
je 0x40823b
mov eax, dword [esi + 0xc]
lea edx, [ebp + 0xc]
push edx
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
test eax, eax
jne 0x40823b
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, edi
imul eax, eax, 0x1c
mov dword [eax + ecx + 0x10], edx
mov ecx, dword [ebp - 0x18]
imul edi, edi, 0x1c
mov eax, dword [esi + 0x14]
push dword [ebp + 8]
mov dword [edi + eax + 8], ecx
mov ecx, dword [esi + 0x14]
add ecx, edi
call fcn.00402ee8
mov eax, dword [esi + 0x14]
mov dword [edi + eax + 0x18], 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
push ebx
lea edx, [ebp - 0x40]
push edx
push ebx
push fcn.0040682c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x4082f2
mov ax, word [ebp - 0x40]
sub ax, 8
neg ax
sbb eax, eax
not eax
and eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x14]
add eax, edi
lea ecx, [eax + 0xc]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00409034
mov eax, dword [esi + 0x14]
push dword [edi + eax + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.00405374
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x14], eax
mov byte [ebp - 4], 1
cmp dword [ebp + 0x10], ebx
je 0x4082f2
push dword [ebp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0x10]
jl 0x4082fd
mov eax, dword [ebp - 0x10]
inc dword [esi]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea eax, [ebp - 0x40]
push eax
call dword [sub.MSVCRT.dll_void___cdecl_operator_delete_void__]
jmp 0x408314
mov dword [ebp + 0xc], ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
push eax
call dword [sub.MSVCRT.dll_void___cdecl_operator_delete_void__]
pop edi
jmp 0x408328
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x14]
pop esi
cmp eax, ebx
pop ebx
je 0x408337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 0xc