Function at 0x42ec20
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 [0x4e6790], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
je 0x42ec3f
call esi
mov dword [0x4eb36c], eax
mov eax, dword [ebp + 8]
call fcn.0043c0a0
cmp byte [0x4e6790], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x42ecbd
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4c19c8
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42ecad
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
cmp byte [0x4e6790], 0
je 0x42ecbd
call esi
mov dword [0x4eb36c], eax
mov ecx, dword [ebp + 8]
call fcn.00433860
cmp byte [0x4e6790], 0
mov dword [ebp - 4], eax
je 0x42ed28
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push str._rY6R
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42ed28
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
cmp byte [0x4e6790], 0
je 0x42ed44
call esi
mov dword [0x4eb36c], eax
call fcn.00433fc0
cmp byte [0x4e6790], 0
mov dword [ebp - 4], eax
je 0x42edac
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4c19f8
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42edac
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00435e70
cmp byte [0x4e6790], 0
je 0x42edd2
call esi
mov dword [0x4eb36c], eax
mov ecx, edi
call fcn.004362d0
cmp byte [0x4e6790], 0
mov dword [ebp - 4], eax
je 0x42ee3c
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4c1a08
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42ee3c
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
cmp byte [0x4e6790], 0
je 0x42ee58
call esi
mov dword [0x4eb36c], eax
mov ecx, dword [ebp + 8]
call fcn.00437410
cmp byte [0x4e6790], 0
mov dword [ebp - 4], eax
je 0x42eec3
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4c1a18
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42eec3
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
call esi
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.004375b0
mov dword [ebp - 4], eax
call esi
cmp byte [0x4e6790], 0
je 0x42ef35
sub eax, edi
push eax
push 0x4c1a28
push 0x4bdff8
mov edi, 0x4eb3f4
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42ef35
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
cmp byte [0x4e6790], 0
je 0x42ef51
call esi
mov dword [0x4eb36c], eax
mov ecx, dword [ebp + 8]
call fcn.004387a0
cmp byte [0x4e6790], 0
mov dword [ebp - 4], eax
je 0x42efbc
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4c1a3c
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call ebx
mov eax, dword [0x4eb374]
test eax, eax
je 0x42efbc
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x42efc4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4