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

Disassembly:
mov eax, 0x54ae0a
call fcn.0054565c
sub esp, 0x174
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
call ebx
cmp eax, 0x4e
ja 0x51570a
jne 0x51555f
jmp 0x515511
sub dword [edi + 0x1e], esi
push ds
add al, 0x3b
push cs
and byte [edx + 0x29], bh
xchg edi, eax
into
aam 0x34
insd dword es:[edi], dx
cmpsb byte [esi], byte es:[edi]
jnp 0x515513
jns 0x515533
push esp
sub edx, dword [esi - 0x13cc4150]
cmpsd dword [esi], dword es:[edi]
aaa
repne outsb dx, byte [esi]
and edi, eax
dec ebp
mov esp, 0xff522e5b
fdivp st(3)
adc al, 0x28
mov ebp, 0x9274ee3e
sal byte [0x338f1cd2], cl
jns 0x5154cc
invalid
and al, 0x36
stosd dword es:[edi], eax
mov esp, 0xb41133e9
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x515719
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [edi], 0
lea eax, [edi + 0x30]
mov dword [ebp - 0x70], eax
and dword [eax + 4], 0
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea edx, [edi + 4]
lea ecx, [ebp - 0x80]
call fcn.0050c09e
and dword [ebp - 4], 0
and dword [ebp - 0x68], 0
and dword [ebp - 0x64], 0
and dword [ebp - 0x60], 0
push 4
pop esi
push esi
lea ecx, [ebp - 0x68]
call fcn.0040de7a
push 0x2e
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.004105a3
test eax, eax
js 0x515787
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.00410498
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040ebec
push dword [ebp - 0x18]
call fcn.00418a9a
pop ecx
and dword [ebp - 0x2c], 0
xor eax, eax
and dword [ebp - 0x24], eax
mov edx, vtable.CRecordVector_int_.0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 3
cmp dword [ebp + 0xc], eax
jl 0x5157ba
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.0040f33a
mov eax, dword [ebp - 0x28]
jmp 0x515c86
mov ecx, dword [ebp + 8]
xor esi, esi
xor edi, edi
cmp dword [ecx + 0x10], esi
jle 0x515805
mov ebx, ecx
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [eax + esi*4]
call fcn.0041045f
lea ecx, [ebp - 0x30]
test eax, eax
js 0x5157ed
push edi
call fcn.004e5e65
mov eax, dword [ebp - 0x24]
mov dword [eax + edi*4], esi
inc edi
jmp 0x5157f3
push esi
call fcn.0040f33a
inc esi
cmp esi, dword [ebx + 0x10]
jl 0x5157c8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x515828
cmp edi, 1
je 0x51581b
mov esi, 0x80004001
jmp 0x515e8b
dec eax
push eax
push 1
lea ecx, [ebp - 0x30]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
cmp eax, 2
jl 0x515ae6
test edi, edi
je 0x51584a
mov ecx, dword [ebp - 0x68]
mov edx, 0x55d508
call fcn.004c4983
test eax, eax
jne 0x515ae6
call ebx
cmp eax, 7
ja 0x5158a2
push ds
idiv al
sub dword [eax - 0x5d427d66], 0xae013fe3
jl 0x5158de
imul eax, dword [esi - 0x78], 0xdcfc5e22
add ebp, dword [esi + eax + 0x6b]
xchg ecx, eax
dec esi
stc
add dword [ebx + 0xf35d54b], edi
mov byte [edx - 0x67], 0x22
adc byte [ecx], bl
xor esi, dword [edx]
and byte [esi], 0x31
or al, dh
sub eax, 0x2a7c26d8
mov esi, 0x39ddfe18
sub bh, byte [esi + eax*4 + 0x17]
inc ebp
dec ebp
out dx, al
invalid
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x50], vtable.CRecordVector_int_.0
mov dword [ebp - 0x18], vtable.CBuffer_unsigned_char_.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov edi, 0x200000
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004105dd
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
push esi
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x515959
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
mov edx, ebx
mov dword [ebp + 0xc], edi
call fcn.004c447d
mov esi, eax
pop ecx
test esi, esi
jne 0x515959
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x51590f
inc esi
jmp 0x515959
and dword [ebp - 0x58], 0
and dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], vtable.CBuffer_unsigned_char_.0
mov esi, 0x10000
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004105dd
push esi
mov esi, dword [ebp - 0x54]
push 0xff
push esi
call fcn.0041b930
mov edx, dword [ebp - 0x28]
add esp, 0xc
cmp edx, 0x100
jl 0x515978
push dword [ebp - 0x54]
xor esi, esi
inc esi
call fcn.00418a9a
pop ecx
push ebx
call fcn.00418a9a
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], vtable.CBaseRecordVector.0
call fcn.004e5c24
jmp 0x515e8b
xor ebx, ebx
test edx, edx
jle 0x5159ba
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + ebx*4]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x30], 2
jb 0x5159b2
mov eax, dword [eax + 0x34]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl ecx, 8
or ecx, eax
mov al, byte [ecx + esi]
mov byte [ecx + esi], bl
mov edx, dword [ebp - 0x28]
mov byte [ebp + ebx - 0x180], al
inc ebx
cmp ebx, edx
jl 0x515981
mov edi, dword [ebp + 0xc]
push 0
pop ebx
mov esi, ebx
dec edi
je 0x515a8b
mov edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x10]
cmp esi, edi
jae 0x5159e9
movzx ecx, byte [esi + ebx + 1]
movzx eax, byte [esi + ebx]
shl ecx, 8
or ecx, eax
cmp byte [ecx + edx], 0xff
jne 0x5159e7
inc esi
jmp 0x5159cc
cmp esi, edi
je 0x515a86
movzx ecx, byte [esi + ebx + 1]
lea eax, [esi + ebx]
mov dword [ebp - 0x6c], eax
movzx eax, byte [eax]
shl ecx, 8
or ecx, eax
add ecx, edx
mov dword [ebp + 0xc], ecx
movzx ebx, byte [ecx]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x74], eax
mov edx, dword [eax + 0x30]
test edx, edx
je 0x515a67
lea ecx, [edx + esi]
lea eax, [edi + 1]
cmp ecx, eax
ja 0x515a67
mov ecx, dword [ebp - 0x6c]
push edx
mov edx, dword [ebp - 0x74]
mov edx, dword [edx + 0x34]
call fcn.00515ec3
pop ecx
test al, al
je 0x515a67
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.0040f33a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [eax + ebx*4], 0xff
mov al, byte [ebp + ebx - 0x180]
mov byte [ecx], al
jmp 0x515a72
lea ecx, [ebp - 0x180]
add ecx, ebx
mov dword [ebp + 0xc], ecx
movzx ebx, byte [ecx]
cmp ebx, 0xff
jne 0x515a0a
inc esi
cmp esi, edi
jb 0x5159c6
mov edx, dword [ebp - 0x28]
xor ebx, ebx
mov esi, ebx
test edx, edx
jle 0x515ab0
mov eax, dword [ebp - 0x24]
cmp dword [eax + esi*4], 0xff
je 0x515aab
push dword [eax + esi*4]
lea ecx, [ebp - 0x50]
call fcn.0040f33a
mov edx, dword [ebp - 0x28]
inc esi
cmp esi, edx
jl 0x515a91
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.004126fa
push dword [ebp - 0x54]
call fcn.00418a9a
push dword [ebp - 0x10]
call fcn.00418a9a
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], vtable.CBaseRecordVector.0
call fcn.004e5c24
jmp 0x515bee
mov ecx, dword [ebp - 0x68]
mov edx, 0x55e31c
call fcn.004c492a
test eax, eax
je 0x515b0c
mov ecx, dword [ebp - 0x68]
mov edx, 0x55dfdc
call fcn.004c492a
test eax, eax
jne 0x515bee
xor ebx, ebx
mov dword [ebp - 0x18], vtable.CBuffer_unsigned_char_.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0x400
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004105dd
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
push esi
call dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x515b5b
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
mov edx, edi
mov dword [ebp + 0xc], 0x400
call fcn.004c447d
mov esi, eax
pop ecx
test esi, esi
je 0x515b67
push edi
call fcn.00418a9a
pop ecx
jmp 0x515e8b
cmp dword [ebp + 0xc], 0x10
jb 0x515be3
push 7
lea edx, [ebp - 0x38]
mov ecx, edi
mov dword [ebp - 0x38], 0x21726152
mov word [ebp - 0x34], 0x71a
mov byte [ebp - 0x32], bl
call fcn.00515ec3
pop ecx
test al, al
je 0x515be3
cmp byte [edi + 9], 0x73
jne 0x515be3
test byte [edi + 0xa], 1
je 0x515be3
mov esi, ebx
cmp dword [ebp - 0x28], esi
jle 0x515be3
mov eax, dword [ebp - 0x24]
mov edx, 0x55dffc
mov ebx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0xc]
call fcn.004c4983
test eax, eax
je 0x515bc9
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x515ba1
jmp 0x515be3
push 1
push esi
lea ecx, [ebp - 0x30]
call fcn.004e60a0
push 0
lea ecx, [ebp - 0x30]
call fcn.004e5e65
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
push edi
mov byte [ebp - 4], 3
call fcn.00418a9a
pop ecx
mov eax, dword [ebp - 0x28]
cmp eax, 2
jl 0x515c83
push 0x55e32c
lea ecx, [ebp - 0x18]
call fcn.0040e479
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004c19cf
push dword [ebp - 0x18]
mov ebx, eax
call fcn.00418a9a
lea ecx, [ebp - 0x18]
mov dword [esp], 0x55e324
call fcn.0040e479
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004c19cf
push dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
call fcn.00418a9a
mov eax, dword [ebp - 0x28]
pop ecx
or ecx, 0xffffffff
xor esi, esi
mov edx, ecx
test eax, eax
jle 0x515c83
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
cmp dword [edi + esi*4], ebx
cmove ecx, esi
cmp dword [edi + esi*4], eax
mov eax, dword [ebp - 0x28]
cmove edx, esi
inc esi
cmp esi, eax
jl 0x515c52
cmp edx, ecx
jle 0x515c83
test ecx, ecx
js 0x515c83
mov dword [edi + edx*4], ebx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
jle 0x515e88
mov esi, dword [ebp + 0x10]
push 8
pop eax
test esi, esi
je 0x515cb6
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push esi
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x515e8b
mov esi, dword [ebp + 0x10]
push 8
pop eax
and dword [ebp - 0x38], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x515cde
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x515ceb
mov byte [ebp - 4], 3
jmp 0x515d50
test esi, esi
je 0x515d02
push dword [ebp + 0x18]
mov eax, dword [edi]
push 0x5580a0
push esi
push edi
call dword [eax + 0xc]
mov esi, eax
jmp 0x515d41
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
mov byte [ebp - 4], 9
mov eax, dword [edi]
push 0x55997c
push edi
call dword [eax]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x515e77
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
push 8
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x515d41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, 1
jne 0x515d62
mov byte [ebp - 4], 3
mov eax, dword [edi]
push edi
call dword [eax + 8]
inc ebx
cmp ebx, dword [ebp - 0x28]
jge 0x515e88
mov edi, dword [ebp - 0x1c]
jmp 0x515c90
test esi, esi
jne 0x515e7c
xor eax, eax
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x50]
push ecx
mov byte [ebp - 4], 0xa
mov eax, dword [edi]
push 0x37
push edi
call dword [eax + 0x20]
cmp word [ebp - 0x50], si
je 0x515d9e
push 8
pop ecx
cmp word [ebp - 0x50], cx
mov ecx, dword [ebp - 0x70]
mov eax, str.Unknown_error
cmove eax, dword [ebp - 0x48]
push eax
call fcn.0040de20
push 8
pop eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], al
call fcn.004f350d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
test ecx, ecx
je 0x515dc1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebx], edi
mov ecx, dword [ebx + 0x1c]
mov eax, dword [eax + 0x14]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x20], 0
jne 0x515e33
mov esi, 0x553ec0
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040e479
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.0040e479
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.0053ce3f
pop ecx
pop ecx
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 0xd
call fcn.0040ebec
push dword [ebp - 0x48]
call fcn.00418a9a
push dword [ebp - 0x18]
call fcn.00418a9a
push dword [ebp - 0x5c]
call fcn.00418a9a
add esp, 0xc
jmp 0x515e73
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0041045f
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x80]
mov ecx, dword [ecx + eax*4]
lea eax, [ecx + 0xc]
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.0053ce3f
pop ecx
pop ecx
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 0xe
call fcn.0040ebec
push dword [ebp - 0x48]
call fcn.00418a9a
pop ecx
xor esi, esi
jmp 0x515e7c
mov esi, 0x80004001
mov byte [ebp - 4], 3
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x515e8b
xor esi, esi
inc esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.CBaseRecordVector.0
call fcn.004e5c24
push dword [ebp - 0x68]
call fcn.00418a9a
push dword [ebp - 0x80]
call fcn.00418a9a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14