Function at 0x42f890
Capabilities:
Check for time delay via gettickcount
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x4e5790], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
je 0x42f8af
call esi
mov dword [0x4ea674], eax
mov eax, dword [ebp + 8]
call fcn.0043b330
cmp byte [0x4e5790], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x42f92d
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push 0x4c0200
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42f91d
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
cmp byte [0x4e5790], 0
je 0x42f92d
call esi
mov dword [0x4ea674], eax
mov ecx, dword [ebp + 8]
call fcn.004345d0
cmp byte [0x4e5790], 0
mov dword [ebp - 4], eax
je 0x42f998
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push str._rY6R
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42f998
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
cmp byte [0x4e5790], 0
je 0x42f9b4
call esi
mov dword [0x4ea674], eax
call fcn.00434d30
cmp byte [0x4e5790], 0
mov dword [ebp - 4], eax
je 0x42fa1c
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push 0x4c0230
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42fa1c
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00436be0
cmp byte [0x4e5790], 0
je 0x42fa42
call esi
mov dword [0x4ea674], eax
push edi
call fcn.00437040
cmp byte [0x4e5790], 0
mov dword [ebp - 4], eax
je 0x42faab
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push 0x4c0240
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42faab
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
cmp byte [0x4e5790], 0
je 0x42fac7
call esi
mov dword [0x4ea674], eax
mov ecx, dword [ebp + 8]
call fcn.00437a70
cmp byte [0x4e5790], 0
mov dword [ebp - 4], eax
je 0x42fb32
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push 0x4c0250
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42fb32
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
call esi
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.00437c20
mov dword [ebp - 4], eax
call esi
cmp byte [0x4e5790], 0
je 0x42fba4
sub eax, edi
push eax
push 0x4c0260
push 0x4bd194
mov edi, 0x4ea704
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42fba4
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
cmp byte [0x4e5790], 0
je 0x42fbc0
call esi
mov dword [0x4ea674], eax
mov ecx, dword [ebp + 8]
call fcn.004383f0
cmp byte [0x4e5790], 0
mov dword [ebp - 4], eax
je 0x42fc2b
call esi
mov dword [0x4ea678], eax
sub eax, dword [0x4ea674]
mov edi, 0x4ea704
push eax
push 0x4c0274
push 0x4bd194
call fcn.00402d60
mov eax, dword [0x4ea704]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4ea67c]
test eax, eax
je 0x42fc2b
push eax
mov eax, dword [0x4ea704]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00492295
mov edx, dword [0x4ea67c]
push edx
call fcn.00492a51
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42fc33
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4