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

Disassembly:
and al, 0x95
lea eax, [ebp - 0x300]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40210b
mov dword [ebp - 0x41c], 0x104
push eax
lea eax, [ebp - 0x41c]
xchg dword [esp], eax
push eax
lea eax, [ebp - 0x530]
xchg dword [esp], eax
push 0
push dword [ebp - 0x414]
call eax
jmp 0x402180
push eax
push 6
call 0x402119
mov bh, 0x36
aam 0x63
scasb al, byte es:[edi]
lea eax, gs:[ebp - 0x200]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
push 0x15
call 0x40214c
mov al, byte [0x887ee100]
adc eax, 0xa0000000
add cl, ah
jle 0x4020c4
add eax, esp
pop edi
and byte [ebx], 0xfc
pop edi
sub byte [ebx], 0xf4
pop esi
and byte [eax], 0xed
jb 0x402133
lea eax, [ebp - 0x100]
push eax
xchg dword [esp + 0xc], eax
call fcn.00402f4b
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x402180
push 0x104
push eax
lea eax, [ebp - 0x530]
xchg dword [esp], eax
push 0
push dword [ebp - 0x414]
call eax
xor esi, esi
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x40c], eax
push 0x1c
push eax
lea eax, [ebp - 0x54c]
xchg dword [esp], eax
push esi
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
test eax, eax
je 0x402266
mov dword [ebp - 0x404], esi
add esi, dword [ebp - 0x540]
cmp esi, dword [ebp - 0x404]
jbe 0x402266
test dword [ebp - 0x53c], 0x1000
je 0x402194
and dword [ebp - 0x538], 0xcc
je 0x402194
mov eax, dword [ebp - 0x540]
add dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x540]
cmp ecx, 0x200000
jbe 0x402204
mov ecx, 0x200000
push eax
lea eax, [ebp - 0x408]
xchg dword [esp], eax
push ecx
push edi
push dword [ebp - 0x404]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x402194
push dword [ebp - 0x408]
push edi
push eax
lea eax, [ebp - 0x530]
xchg dword [esp], eax
call fcn.00402341
mov ecx, dword [ebp - 0x408]
cmp ecx, dword [ebp - 0x540]
jae 0x402194
sub ecx, 0x1000
sub dword [ebp - 0x540], ecx
add dword [ebp - 0x404], ecx
jmp 0x4021f1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xchg dword [ebp - 0x40c], eax
sub dword [ebp - 0x40c], eax
push eax
push esp
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
pop eax
cmp eax, 0x103
jne 0x402308
cmp dword [0x40314c], 1
je 0x402308
push dword [0x404064]
call dword [sym.imp.KERNEL32.DLL_Sleep]
push eax
lea eax, [ebp - 0x530]
xchg dword [esp], eax
call fcn.00401d2d
push dword [0x404018]
push eax
call fcn.00401ce5
test eax, eax
je 0x402180
mov ebx, dword [ebp - 0x40c]
shl ebx, 3
cmp ebx, dword [0x404068]
jae 0x4022df
mov ebx, dword [0x404068]
jmp 0x4022ed
cmp ebx, dword [0x40406c]
jbe 0x4022ed
mov ebx, dword [0x40406c]
cmp dword [0x40314c], 1
je 0x402308
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub ebx, 0x64
jg 0x4022ed
jmp 0x402180
sub edi, 0x1000
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
dec dword [section..bss]
pop esi
pop edi
pop ebx
leave
ret 4