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

Disassembly:
push 0xffffffffffffffff
push 0x491d2b
mov eax, dword fs:[0]
push eax
mov eax, 0x10068
mov dword fs:[0], esp
call fcn.0048dd20
mov eax, dword [0x4a6c10]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
push edi
mov eax, esi
call fcn.0040c8e0
test al, al
je 0x43f099
push 0x10
xor ebx, ebx
push ebx
push esi
call fcn.0048340f
add esp, 0xc
jmp 0x43f0a4
push esi
call fcn.00482c51
add esp, 4
xor ebx, ebx
mov ebp, edx
mov dword [esp + 0x4c], eax
cmp ebp, ebx
jg 0x43f100
jl 0x43f0b5
cmp eax, 1
jae 0x43f100
mov eax, dword [0x4a3440]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0xe4], bl
jne 0x43f0e4
mov ecx, dword [0x4a7474]
push 1
push ebx
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004716d0
jmp 0x43f3e4
mov ecx, dword [esp + 0x10088]
push 0x4957f9
push ebx
push 0x496ed0
call fcn.0042cdb0
jmp 0x43f3e4
mov eax, dword [0x4a94e0]
or edi, 0xffffffff
mov dword [esp + 0x14], vtable.TextStream.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, edi
je 0x43f144
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x43f144
mov byte [esp + 0x2e], bl
mov dword [esp + 0x14], vtable.TextFile.0
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x1008c]
mov dword [esp + 0x10080], ebx
mov eax, dword [0x4a3440]
mov esi, dword [eax + 0xd8]
push 0x30c
push ecx
lea ecx, [esp + 0x1c]
and esi, 0x7fffffff
mov dword [esp + 0x24], ebx
call dword [0x499a80]
test al, al
je 0x43f19d
mov eax, esi
mov ebx, 0x30c
lea ecx, [esp + 0x14]
call fcn.0046c750
xor ebx, ebx
test al, al
jne 0x43f1f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0xe4], bl
jne 0x43f1d5
mov edx, dword [0x4a7474]
push 1
push ebx
push edi
push 0x496ed0
push edx
call fcn.004716d0
mov dword [esp + 0x10080], edi
jmp 0x43f3d7
mov ecx, dword [esp + 0x10088]
push 0x4957f9
push ebx
push 0x496ed0
call fcn.0042cdb0
mov dword [esp + 0x10080], edi
jmp 0x43f3d7
xor edi, edi
test ebp, ebp
jl 0x43f31b
jg 0x43f210
cmp dword [esp + 0x4c], ebx
jbe 0x43f31b
mov edi, edi
push 1
push 0xffff
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x20]
call fcn.0046c880
mov esi, eax
test esi, esi
je 0x43f28e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a92d4]
mov ecx, dword [0x4a3440]
cmp eax, dword [ecx + 0xb4]
jbe 0x43f273
push 0
push 0
push 0
push 0
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x43f268
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a92d4], eax
add ebx, 1
adc edi, 0
cmp edi, ebp
jl 0x43f210
jg 0x43f31f
cmp ebx, dword [esp + 0x4c]
jb 0x43f210
jmp 0x43f31f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43f2c7
cmp dword [esp + 0x40], 0
jne 0x43f2c7
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x1c]
call edx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call edx
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
jne 0x43f2fe
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push ecx
jmp 0x43f3c7
mov ecx, dword [esp + 0x10088]
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
jmp 0x43f3cc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43f349
cmp dword [esp + 0x40], 0
jne 0x43f349
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x1c]
call edx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call edx
test esi, esi
je 0x43f36b
cmp byte [esp + esi + 0x73], 0xa
jne 0x43f367
dec esi
test esi, esi
jne 0x43f390
mov ecx, dword [esp + 0x10]
call fcn.00412600
test eax, eax
jne 0x43f3a9
lea ecx, [esp + 0x14]
mov dword [esp + 0x10080], 0xffffffff
call fcn.004140b0
xor eax, eax
jmp 0x43f3e4
mov ecx, dword [esp + 0x10]
push 1
push 0
push esi
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.004716d0
jmp 0x43f374
mov edx, dword [0x4a3440]
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x495870
mov dword [edx + 0x30], 0
push eax
call fcn.004716d0
mov dword [esp + 0x10080], 0xffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004140b0
mov eax, esi
mov ecx, dword [esp + 0x10078]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10074
ret 8