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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4be0ed
push eax
mov eax, 0x2006c
mov dword fs:[0], esp
call fcn.004bdab0
mov eax, dword [0x4eaff0]
push ebx
mov ebx, ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ebx
call fcn.0041eef0
mov ecx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jg 0x45365b
jl 0x4535fb
cmp eax, 1
jae 0x45365b
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x453637
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, ebx
call fcn.0043e4d0
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ec65c]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x4536ab
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x2a], al
push esi
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov eax, dword [0x4e7024]
mov eax, dword [eax + 0xfc]
and eax, 0x7fffffff
push eax
push 0x30c
push dword [ebp + 8]
call fcn.0049eca0
test al, al
jne 0x453735
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x45371b
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
mov esi, eax
jmp 0x4538e6
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, ebx
call fcn.0043e4d0
mov esi, eax
jmp 0x4538e6
mov eax, dword fs:[0x24]
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov ebx, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp + 0xc], eax
nop dword [eax]
push 1
push 0xffff
lea eax, [ebp - 0x20078]
push eax
lea ecx, [ebp - 0x44]
call fcn.0049ee90
mov esi, eax
test esi, esi
je 0x45386a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e7024]
sub eax, dword [0x4ec46c]
cmp eax, dword [ecx + 0xd8]
jbe 0x4537c3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4537b8
mov eax, dword [ebp + 0xc]
cmp dword [0x4eb0cc], eax
jne 0x4537b8
mov edx, 1
or ecx, 0xffffffff
call fcn.00401700
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ec46c], eax
add edi, 1
adc ebx, 0
cmp ebx, dword [ebp - 0x4c]
jl 0x453750
jg 0x4537d9
cmp edi, dword [ebp - 0x50]
jb 0x453750
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4537fa
cmp dword [ebp - 0x18], 0
jne 0x4537fa
mov eax, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call dword [eax + 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
call dword [eax + 8]
test esi, esi
je 0x45382b
cmp word [ebp + esi*2 - 0x2007a], 0xa
jne 0x45381d
add esi, 0xffffffff
je 0x45382b
push 1
push 0
push esi
lea eax, [ebp - 0x20078]
push eax
jmp 0x453833
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x48]
call fcn.004a6070
test eax, eax
jne 0x453846
xor esi, esi
jmp 0x4538e5
mov eax, dword [0x4e7024]
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
mov dword [eax + 0x30], 0
call fcn.004a6070
jmp 0x4538e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x45389a
cmp dword [ebp - 0x18], 0
jne 0x45389a
mov eax, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call dword [eax + 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
call dword [eax + 8]
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x4538cf
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
jmp 0x4538e3
mov ecx, dword [ebp - 0x54]
push 0x4bfba0
push 0
push 0x4d4ebc
call fcn.0043e4d0
mov esi, eax
pop edi
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test eax, eax
je 0x453914
cmp dword [ebp - 0x18], 0
jne 0x453914
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.0049f850
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x45393f
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x453938
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x453966
push 0x2000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8