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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 0xc]
mov dword [edx - 0x34], eax
mov eax, dword [ebp - 0x10]
sub eax, 1
jb 0x4a3a0d
je 0x4a3a1e
dec eax
je 0x4a3a2f
dec eax
je 0x4a3a40
jmp 0x4a3a4f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xac], eax
jmp 0x4a3a4f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb0], eax
jmp 0x4a3a4f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb4], eax
jmp 0x4a3a4f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb8], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov byte [eax - 0xb9], 0
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x45], 0
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x46], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a350c
pop ecx
test al, al
setne byte [ebp - 0x1a]
mov eax, dword [0x52d834]
cmp dword [eax], 4
setg al
and eax, 0x7f
mov edx, dword [0x52da64]
movzx edx, word [edx]
shl edx, 2
imul edx
mov edx, dword [0x52da64]
movzx edx, word [edx]
add eax, edx
mov edx, dword [0x52d834]
cmp dword [edx], 9
setg dl
and edx, 0x7f
mov ecx, dword [0x52da64]
movzx ecx, word [ecx]
shl ecx, 3
imul edx, ecx
add eax, edx
mov edx, dword [0x52d834]
cmp dword [edx], 0x10
setg dl
and edx, 0x7f
mov ecx, dword [0x52da64]
movzx ecx, word [ecx]
shl ecx, 4
imul edx, ecx
add eax, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 0x34]
mov ecx, dword [ebp + 0xc]
sub edx, dword [ecx - 0xac]
test edx, edx
jns 0x4a3b09
add edx, 0x3ff
sar edx, 0xa
cmp eax, edx
jle 0x4a4437
cmp dword [ebp - 0x10], 3
jl 0x4a3b52
mov eax, dword [0x52d834]
cmp dword [eax], 0xc
jl 0x4a3b52
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0xb8]
mov edx, dword [0x52da64]
movzx edx, word [edx]
add edx, edx
lea edx, [edx + edx*2]
mov ecx, dword [0x52d834]
imul edx, dword [ecx]
cmp eax, edx
jge 0x4a4437
cmp dword [ebp - 0x10], 2
jl 0x4a3b92
mov eax, dword [0x52d834]
cmp dword [eax], 8
jl 0x4a3b92
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0xb4]
mov edx, dword [0x52da64]
movzx edx, word [edx]
mov ecx, edx
shl edx, 4
sub edx, ecx
mov ecx, dword [0x52d834]
imul edx, dword [ecx]
cmp eax, edx
jge 0x4a4437
cmp dword [ebp - 0x10], 1
jl 0x4a3bce
mov eax, dword [0x52d834]
cmp dword [eax], 6
jl 0x4a3bce
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x34]
mov edx, dword [ebp + 0xc]
sub eax, dword [edx - 0xb0]
mov edx, dword [0x52da64]
movzx edx, word [edx]
imul edx, edx, 0x64
mov ecx, dword [0x52d834]
imul edx, dword [ecx]
cmp eax, edx
jge 0x4a4437
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x36]
lea eax, [ebp - 0x2c]
call fcn.004a2d9c
pop ecx
lea eax, [ebp - 0x80]
call fcn.00402e4c
mov esi, 0x4a4440
lea edi, [ebp - 0xa0]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1b], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov eax, dword [eax]
mov al, byte [eax + 0xe]
mov byte [ebp - 0x1d], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov al, byte [eax + 4]
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x52d34c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0x52d6d0]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x2c], 0
je 0x4a4405
mov eax, dword [0x52d990]
mov eax, dword [eax]
mov edx, dword [0x52d834]
cmp eax, dword [edx]
jg 0x4a4405
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a113c
pop ecx
mov eax, dword [ebp - 0x40]
mov al, byte [eax + 7]
and al, 7
mov byte [ebp - 0x25], al
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a3cf8
cmp dword [ebp - 0x3c], 6
jl 0x4a3ca1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x2c]
mov ecx, 3
cdq
idiv ecx
test edx, edx
je 0x4a3ca1
cmp dword [ebp - 0x10], 0
jne 0x4a3cf8
mov eax, dword [ebp - 0x40]
mov al, byte [eax + 7]
and al, 0x7f
cmp al, 0x40
jbe 0x4a3cb3
cmp byte [ebp - 0x25], 5
je 0x4a3cd4
mov eax, dword [0x52d6d0]
mov eax, dword [eax]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [0x52d990]
add eax, dword [edx]
mov edx, dword [0x52d834]
cmp eax, dword [edx]
jge 0x4a3cf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x2c]
cmp eax, dword [ebp - 0x10]
jge 0x4a3d51
movsx eax, byte [ebp - 0x25]
cmp eax, dword [ebp - 0x14]
jge 0x4a3d51
test byte [ebp - 0x25], 1
je 0x4a3cf8
mov al, byte [ebp - 0x1a]
xor al, 1
or al, byte [ebp - 0x1c]
jne 0x4a3d51
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
jne 0x4a4399
cmp byte [ebp - 0x25], 4
setle al
and eax, 0x7f
mov edx, dword [0x52d990]
add eax, dword [edx]
cmp byte [ebp - 0x25], 0
sete dl
and edx, 0x7f
add eax, edx
mov edx, dword [ebp - 0x40]
mov dl, byte [edx + 7]
and dl, 0x7f
cmp dl, 0x40
setbe dl
and edx, 0x7f
add eax, edx
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x4a3d41
adc edx, 0
add eax, edx
mov edx, dword [0x52d834]
cmp eax, dword [edx]
jg 0x4a4399
mov eax, dword [ebp - 0x10]
sub eax, 1
jb 0x4a3d63
je 0x4a3d73
dec eax
je 0x4a3d83
dec eax
je 0x4a3d93
jmp 0x4a3da1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xac], eax
jmp 0x4a3da1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb0], eax
jmp 0x4a3da1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb4], eax
jmp 0x4a3da1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 0xc]
mov dword [edx - 0xb8], eax
cmp byte [ebp - 0x25], 4
jge 0x4a3dbf
push ebp
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
call fcn.004a3598
pop ecx
test al, al
je 0x4a4384
inc dword [ebp - 0x3c]
push 1
mov eax, dword [ebp - 0x40]
test byte [eax + 7], 0x80
setne al
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
mov al, byte [eax]
call fcn.0049b044
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov cl, 1
mov eax, dword [ebp - 0x40]
mov al, byte [eax]
call fcn.0049fed8
pop ecx
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
call fcn.004a0b40
pop ecx
mov edx, dword [ebp + 0xc]
mov byte [edx - 0xba], al
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 1
mov eax, dword [ebp + 0xc]
sete byte [eax - 0xb9]
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0x2e], 0
je 0x4a3f33
cmp byte [ebp - 0x25], 5
jne 0x4a3f33
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a3f33
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0
jne 0x4a3f33
mov eax, dword [ebp + 0xc]
cmp word [eax + 0x18], 0
jne 0x4a3e92
mov eax, dword [0x52dacc]
push eax
mov eax, dword [0x52d8c4]
push eax
mov eax, dword [0x52d8e0]
push eax
mov ecx, dword [0x52da50]
mov edx, dword [0x52d358]
mov eax, dword [0x52da18]
call fcn.004a7808
jmp 0x4a3ec9
mov eax, dword [0x52da50]
push eax
mov eax, dword [0x52dacc]
push eax
mov eax, dword [0x52d8c4]
push eax
mov eax, dword [0x52d8e0]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
push eax
push 0
mov ecx, dword [0x52dbc0]
mov edx, dword [0x52d358]
mov eax, dword [0x52da18]
call fcn.004a79fc
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 2
setne dl
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 0x18]
call fcn.004993a0
mov edx, dword [ebp + 0xc]
mov byte [edx - 0xb9], al
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a3f33
mov eax, dword [0x52da50]
push eax
mov eax, dword [0x52dacc]
push eax
mov eax, dword [0x52d8c4]
push eax
mov eax, dword [0x52d8e0]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax - 0xbb]
push eax
mov ecx, dword [0x52dbc0]
mov edx, dword [0x52d358]
mov eax, dword [0x52da18]
call fcn.004a79fc
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0x25], 0
jle 0x4a3f6e
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x47], 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffff79
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffff59
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x47]
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
call fcn.004a33d8
pop ecx
test byte [ebp - 0x25], 1
jne 0x4a3f80
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
jne 0x4a3fe2
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 0
je 0x4a3fe2
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 1
jg 0x4a3fe2
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 0xff
jne 0x4a41d4
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
cmp byte [ebp + eax - 0x36], 0
jne 0x4a41d4
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a3fe2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x2c]
sar eax, 1
jns 0x4a3fcf
adc eax, 0
inc eax
cmp eax, dword [ebp - 0x10]
jge 0x4a3fe2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0x2c], 5
jl 0x4a41d4
mov byte [ebp - 0x19], 1
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
mov cl, 1
call fcn.004a3328
pop ecx
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x1b]
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
call fcn.004a33d8
pop ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dl, byte [edx]
mov byte [eax - 0x45], dl
mov eax, dword [ebp + 0xc]
mov word [eax - 0xbe], 0
mov eax, dword [0x52d464]
mov byte [eax], 0
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 1
je 0x4a4064
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xba], 2
je 0x4a4064
xor eax, eax
jmp 0x4a4066
mov al, 1
or al, 0x10
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x46]
mov eax, dword [ebp + 0xc]
lea edx, [eax - 0x45]
lea eax, [ebp - 9]
call fcn.0049dfd0
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
jne 0x4a40aa
mov eax, dword [ebp + 0xc]
add eax, 0xffffffba
push eax
cmp byte [ebp - 0x1d], 0x82
setbe al
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 0x45]
lea edx, [ebp - 9]
call fcn.0049b70c
xor al, 1
imul eax, eax, 0x32
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x4a4139
mov eax, dword [0x52d6d0]
mov eax, dword [eax]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [0x52d990]
add eax, dword [edx]
mov edx, dword [0x52d834]
cmp eax, dword [edx]
jge 0x4a410d
push ebp
call fcn.004a3754
pop ecx
test al, al
je 0x4a410d
mov eax, dword [ebp + 0xc]
mov al, byte [eax - 0x46]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov cl, byte [eax - 0x45]
mov dl, byte [ebp - 9]
mov ax, 2
call fcn.0041bc00
mov eax, dword [ebp + 0xc]
mov word [eax - 0xbe], 0
jmp 0x4a4139
mov eax, dword [ebp + 0xc]
inc word [eax - 0xbe]
cmp byte [ebp - 0xa], 0xc
je 0x4a4123
cmp byte [ebp - 0xa], 0xd
jne 0x4a4130
mov eax, dword [ebp + 0xc]
cmp word [eax - 0xbe], 6
jbe 0x4a4134
xor eax, eax
jmp 0x4a4136
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x4a4149
cmp byte [ebp - 0xa], 0
jne 0x4a4033
mov eax, dword [ebp - 0x40]
mov cl, byte [eax + 1]
mov eax, dword [ebp - 0x40]
mov dl, byte [eax]
mov al, byte [ebp - 0x1d]
call fcn.00429294
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
mov cl, byte [ebp - 0x1e]
call fcn.004a3328
pop ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dl, byte [edx]
mov byte [eax - 0x45], dl
cmp byte [ebp - 0x19], 0
je 0x4a41c5
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0x11
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x46]
mov eax, dword [ebp + 0xc]
lea edx, [eax - 0x45]
lea eax, [ebp - 9]
call fcn.0049dfd0
test al, al
jne 0x4a41c5
mov eax, dword [ebp + 0xc]
add eax, 0xffffffba
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x45]
lea edx, [ebp - 9]
mov al, 1
call fcn.0049b70c
test al, al
jne 0x4a41c9
xor eax, eax
jmp 0x4a41cb
mov al, 1
mov edx, dword [ebp + 0xc]
mov byte [edx - 0xb9], al
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a41f3
cmp byte [ebp - 0x25], 4
sete al
and al, byte [ebp - 0x1a]
je 0x4a41ef
mov byte [ebp - 0x26], 0
jmp 0x4a41f3
mov byte [ebp - 0x26], 4
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x28], 0
jne 0x4a4270
cmp dword [ebp - 0x10], 0xffffffff
jle 0x4a42a9
cmp dword [ebp - 0x18], 0
jne 0x4a42a9
jmp 0x4a4270
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a4237
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_GetTickCount
push eax
movsx edx, byte [ebp - 0x26]
mov eax, dword [ebp - 0x10]
inc eax
xor ecx, ecx
call fcn.004a39dc
pop ecx
jmp 0x4a4254
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_GetTickCount
push eax
mov edx, dword [ebp - 4]
dec edx
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc eax
xor ecx, ecx
call fcn.004a39dc
pop ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a4270
dec dword [ebp - 4]
cmp byte [ebp - 0x1a], 0
je 0x4a4270
mov eax, dword [0x52d6d0]
dec dword [eax]
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a4282
cmp dword [ebp - 4], 0
jg 0x4a4212
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a4320
cmp byte [ebp - 0x1a], 0
je 0x4a42a2
mov eax, dword [0x52d6d0]
mov edx, dword [ebp - 4]
sub dword [eax], edx
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a4320
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a4320
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 4]
test eax, eax
jle 0x4a4320
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a42e9
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_GetTickCount
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 4]
dec ecx
movsx edx, byte [ebp - 0x26]
mov eax, dword [ebp - 0x10]
inc eax
call fcn.004a39dc
pop ecx
jmp 0x4a430b
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_GetTickCount
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 4]
dec ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
dec edx
mov eax, dword [ebp - 0x10]
inc eax
call fcn.004a39dc
pop ecx
cmp byte [ebp - 0x1a], 0
je 0x4a431b
mov eax, dword [0x52d6d0]
mov edx, dword [ebp - 4]
sub dword [eax], edx
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
jne 0x4a434e
mov eax, dword [0x52d34c]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jle 0x4a434e
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a0220
pop ecx
mov eax, dword [0x52d34c]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jg 0x4a4338
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
je 0x4a4384
mov eax, dword [ebp - 0x40]
mov cl, byte [eax + 1]
mov eax, dword [ebp - 0x40]
mov dl, byte [eax]
mov al, byte [ebp - 0x1d]
call fcn.00429294
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [eax + 1]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
mov al, byte [eax]
call fcn.0049fed8
pop ecx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 2]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a113c
pop ecx
jmp 0x4a43d0
mov eax, dword [ebp + 0xc]
test byte [eax + 8], 4
je 0x4a43c7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x2c]
sar eax, 1
jns 0x4a43af
adc eax, 0
inc eax
cmp eax, dword [ebp - 0x10]
jl 0x4a43c0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 2]
mov dword [ebp - 0x30], eax
jmp 0x4a43d0
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x4a43d0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 2]
mov dword [ebp - 0x30], eax
mov eax, dword [0x52d6d0]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0xb9], 0
jne 0x4a440f
cmp dword [ebp - 0x30], 0
je 0x4a440f
mov eax, dword [0x52d338]
cmp byte [eax], 0
jne 0x4a440f
mov eax, dword [ebp + 0xc]
cmp byte [eax - 0x26], 0
je 0x4a3c5a
jmp 0x4a440f
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a113c
pop ecx
cmp dword [ebp - 0x2c], 0
je 0x4a4437
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 2]
mov dword [ebp - 0x30], eax
mov edx, 8
mov eax, dword [ebp - 0x2c]
call sub.Vcl40.bpl__System__FreeMem_qqrv
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a4415
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4