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

Disassembly:
push 0xffffffffffffffff
push 0x48ab78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x68]
xor eax, eax
mov ecx, esi
mov dword [esp + 0x60], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
mov edx, dword [edi]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call dword [edx + 0x60]
cmp eax, 1
jne 0x4052ad
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstTokenAndRemove_class_CString___char_const__]
lea ecx, [esp + 0x10]
push 0x3b
push ecx
call dword [sym.imp.Staff2.dll_int___cdecl_STAFFRemoveComment_class_CString___char_]
mov edx, dword [esp + 0x18]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
je 0x405296
lea eax, [esp + 0x10]
push 0x49b074
lea ecx, [esp + 0x6c]
push eax
push ecx
call ebp
mov eax, dword [eax]
push eax
call edi
mov ebx, eax
add esp, 0x10
lea ecx, [esp + 0x68]
mov dword [esp + 0x40], ebx
call fcn.00489b20
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x405296
lea eax, [esp + 0x10]
push 0x49b074
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esi], eax
call fcn.00489b20
mov eax, dword [esi]
dec eax
cmp eax, 0x54
ja case.0x405121.8
xor edx, edx
mov dl, byte [eax + 0x4055b4]
jmp dword [edx*4 + 0x405594]
push 0xc
mov dword [esi + 8], 0
call sub.MFC42.DLL_operatornew
mov dword [esi + 4], eax
mov ebx, eax
mov eax, dword [esi]
add esp, 4
cmp eax, 0x27
jne 0x4052fd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405296
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esi + 0xc], al
call fcn.00489b20
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4052d6
jmp 0x405296
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40542a
jmp 0x405296
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x405468
jmp 0x405296
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4054a6
jmp 0x405296
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405296
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x20]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x1c]
mov word [esi + 4], ax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405296
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x24]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x20]
mov word [esi + 6], ax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405296
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x28]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esi + 8], eax
call fcn.00489b20
mov eax, dword [esi + 8]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esi + 8], eax
jne 0x4054e4
jmp 0x405296
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405556
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x60]
cmp eax, 1
je 0x405093
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
or eax, 0xffffffff
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x30]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esi + 0xd], al
call fcn.00489b20
jmp 0x405305
mov byte [esi + 0xd], 0
mov byte [esi + 0xc], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405409
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x34]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x30]
mov word [ebx], ax
call fcn.00489b20
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405409
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x38]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x34]
mov word [ebx + 2], ax
call fcn.00489b20
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405409
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x38]
mov word [ebx + 4], ax
call fcn.00489b20
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405409
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x40]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [ebx + 6], al
call fcn.00489b20
push 0xc
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x6c]
mov dword [ebx + 8], eax
mov ebx, eax
mov dword [eax + 8], 0
mov eax, dword [esp + 0x14]
add esp, 4
inc edx
mov ecx, dword [eax - 8]
mov dword [esp + 0x68], edx
test ecx, ecx
jne 0x40531c
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
mov dword [esi + 8], ecx
lea ecx, [esp + 0x10]
call fcn.00489b20
mov eax, dword [esp + 0x40]
jmp 0x4052c1
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x48]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x44]
mov word [esi + 4], ax
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1
lea ecx, [esp + 0x10]
push 0x49b074
lea edx, [esp + 0x4c]
push ecx
push edx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x48]
mov word [esi + 4], ax
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1
lea eax, [esp + 0x10]
push 0x49b074
lea ecx, [esp + 0x50]
push eax
push ecx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x4c]
mov word [esi + 4], ax
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], eax
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x405519
mov dword [esi + 4], 0x493e0
jmp 0x40553e
lea eax, [esp + 0x10]
push 0x49b074
lea ecx, [esp + 0x54]
push eax
push ecx
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x50]
mov dword [esi + 4], eax
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x58]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x54]
mov dword [esi + 4], eax
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00489b20
mov eax, ebx
jmp 0x4052c1