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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x540d75
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x28]
call fcn.004056c4
xor eax, eax
push ebp
push 0x541a5a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00541ba8
mov dword [ebx + 0x18], edi
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x14], 0
jne 0x540dd5
mov eax, dword [ebx + 0x34]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x10], 0
jne 0x540de1
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0x10], eax
call sub.kernel32.dll_GetTickCount_1
cmp eax, dword [ebx + 0x3c]
ja 0x540df4
cmp esi, dword [ebx + 0x44]
je 0x5419b4
mov dword [ebx + 0x44], esi
call sub.kernel32.dll_GetTickCount_1
add eax, 0x64
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, ebx
call fcn.00541ba8
mov eax, dword [ebp + 0x14]
call fcn.0047d154
xor eax, eax
mov dword [ebx + 0x20], eax
xor eax, eax
mov dword [ebx + 0x24], eax
movzx eax, byte [ebp + 0x20]
mov byte [ebx + 0x28], al
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x55], 0
mov eax, dword [0x68f780]
mov eax, dword [eax]
mov edx, 0x541a70
call fcn.0047c81c
mov dword [ebp - 0x44], eax
cmp byte [ebp + 0x18], 0
je 0x540e57
mov dword [ebp - 0x38], 0xe
jmp 0x540e5e
mov dword [ebp - 0x38], 5
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x28], 0
je 0x54197a
mov eax, dword [0x68fcf4]
mov eax, dword [eax]
sub eax, 0x14
cmp eax, dword [ebp - 0x38]
jg 0x540ec2
cmp byte [ebp + 0x18], 0
je 0x540e9c
mov eax, dword [ebp - 0x38]
add eax, 9
cmp eax, dword [ebx + 0x24]
jle 0x540eb3
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 0x38]
add eax, 9
mov dword [ebx + 0x24], eax
jmp 0x540eb3
mov eax, dword [ebp - 0x38]
add eax, 3
cmp eax, dword [ebx + 0x24]
jle 0x540eb3
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 0x38]
add eax, 3
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x20]
add eax, 0xa
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 0xc4], 0x5c
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 4]
mov eax, dword [ebp + 0x28]
call fcn.0047f2e8
mov edx, dword [ebp - 0xc0]
lea eax, [ebp + 0x28]
call fcn.004052cc
cmp byte [ebp + 0x18], 0
je 0x540eff
mov esi, dword [ebp - 0x3c]
add esi, 0xc
jmp 0x540f05
mov esi, dword [ebp - 0x3c]
add esi, 7
cmp dword [ebp - 4], 0
je 0x540e64
jmp 0x5418c0
lea eax, [ebp - 8]
call fcn.00405234
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3c
je 0x540f58
push 0
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 0xc4], 0x3c
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047f2e8
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 4]
mov edx, 0x541a7c
call fcn.0040555c
cmp dword [ebp - 8], 0
je 0x540fab
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 8]
call fcn.00405bc0
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov eax, dword [ebp + 0x14]
call fcn.0047dca8
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 8]
call fcn.00405bc0
mov edx, dword [ebp - 0xd0]
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047ccf8
add esi, eax
jmp 0x5418c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, 0x541a88
mov edx, 0x541a7c
mov eax, dword [ebp - 4]
call fcn.0047f7b8
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 4]
call fcn.004052cc
cmp dword [ebp - 0xc], 0
je 0x541784
mov ecx, 5
mov edx, 0x541a94
mov eax, dword [ebp - 0xc]
call fcn.0047f958
test al, al
je 0x541027
push 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0040a364
mov dword [ebp - 0x48], eax
jmp 0x5418c0
mov ecx, 8
mov edx, 0x541aa4
mov eax, dword [ebp - 0xc]
call fcn.0047f958
test al, al
je 0x541051
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004052cc
mov byte [ebp - 0x55], 1
jmp 0x5418c0
mov ecx, 1
mov edx, 0x541ab8
mov eax, dword [ebp - 0xc]
call fcn.0047f958
test al, al
je 0x541096
push 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040a364
add esi, eax
jmp 0x5418c0
mov ecx, 1
mov edx, 0x541ac4
mov eax, dword [ebp - 0xc]
call fcn.0047f958
test al, al
je 0x5410dc
push 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040a364
add dword [ebp - 0x38], eax
jmp 0x5418c0
mov edx, 0x541ad0
mov eax, dword [ebp - 0xc]
call fcn.00409d04
test eax, eax
jne 0x5410f8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
jmp 0x5418c0
mov edx, 0x541ae0
mov eax, dword [ebp - 0xc]
call fcn.00409d04
test eax, eax
jne 0x54114e
cmp byte [ebp + 0x18], 0
je 0x541125
mov eax, dword [ebp - 0x38]
add eax, 9
cmp eax, dword [ebx + 0x24]
jle 0x541139
mov eax, dword [ebp - 0x38]
add eax, 9
mov dword [ebx + 0x24], eax
jmp 0x541139
mov eax, dword [ebp - 0x38]
add eax, 3
cmp eax, dword [ebx + 0x24]
jle 0x541139
mov eax, dword [ebp - 0x38]
add eax, 3
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x38], 0xe
mov eax, dword [ebx + 0x20]
add eax, 0xa
mov dword [ebp - 0x3c], eax
jmp 0x5418c0
mov edx, 0x541af0
mov eax, dword [ebp - 0xc]
call fcn.00409d04
test eax, eax
jne 0x5411bb
add dword [ebp - 0x38], 4
mov eax, 0x2c
call fcn.00402f80
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov edx, 0x2c
call fcn.0047eb7c
mov eax, dword [ebp - 0x94]
mov byte [eax + 0x2a], 1
mov eax, dword [ebp - 0x94]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp + 0x10]
call fcn.0041b0d8
add dword [ebp - 0x38], 5
jmp 0x5418c0
mov edx, 0x541b00
mov eax, dword [ebp - 0xc]
call fcn.00409d04
test eax, eax
jne 0x541266
inc dword [ebp - 0x38]
mov eax, 0x2c
call fcn.00402f80
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov edx, 0x2c
call fcn.0047eb7c
mov edx, dword [ebx + 0x20]
mov eax, 0x96
call fcn.0047fa80
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x20]
add eax, 0xbb8
mov edx, dword [ebp - 0x94]
mov dword [edx + 8], eax
mov eax, dword [0x68fcf4]
mov eax, dword [eax]
sub eax, 0x14
cmp eax, dword [ebx + 0x24]
jg 0x54123f
mov eax, dword [0x68fcf4]
mov eax, dword [eax]
sub eax, 0x14
add eax, 0xbb8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
jmp 0x541250
mov eax, dword [ebp - 0x38]
add eax, 0xbb8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp + 0x10]
call fcn.0041b0d8
inc dword [ebp - 0x38]
jmp 0x5418c0
mov edx, 0x541b10
mov eax, dword [ebp - 0xc]
call fcn.00409d04
test eax, eax
jne 0x5412e4
inc dword [ebp - 0x38]
mov eax, 0x2c
call fcn.00402f80
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov edx, 0x2c
call fcn.0047eb7c
mov edx, dword [ebx + 0x20]
mov eax, 0x96
call fcn.0047fa80
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x38]
add eax, 0xbb8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x20]
add eax, 0xbb8
mov edx, dword [ebp - 0x94]
mov dword [edx + 8], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp + 0x10]
call fcn.0041b0d8
inc dword [ebp - 0x38]
jmp 0x5418c0
mov ecx, 3
mov edx, 0x541b20
mov eax, dword [ebp - 0xc]
call fcn.0047f958
test al, al
je 0x541742
push 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
mov byte [ebp - 0x57], 1
mov byte [ebp - 0x56], 0
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
xor eax, eax
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x5c], 0x64
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x64], 0xff
mov byte [ebp - 0x95], 0
cmp dword [ebp - 0x10], 0
je 0x541643
push 0
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 0xc4], 0x2c
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0047f2e8
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0x10]
call fcn.004052cc
cmp dword [ebp - 0x20], 0
je 0x541643
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x20]
call fcn.00409b80
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0x20]
call fcn.004052cc
push 0
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0xc4], 0x2e
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0047f2e8
cmp dword [ebp - 0x24], 0
je case.0x5413ff.99
cmp dword [ebp - 0x28], 0
je case.0x5413ff.99
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
add eax, 0xffffff9f
cmp eax, 0x18
ja case.0x5413ff.99
movzx eax, byte [eax + 0x541406]
jmp dword [eax*4 + 0x54141f]
or edx, 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040a364
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
sub eax, 0xb3
jb case.0x5413ff.99
mov dword [ebp - 0x74], 0xffffffff
jmp case.0x5413ff.99
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004056d4
mov ecx, eax
mov edx, 0x541b24
mov eax, 0x541b44
call fcn.0041ae0c
test eax, eax
jle 0x5415a3
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x68]
jle case.0x5413ff.99
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, 0x541b6c
call fcn.00405820
test eax, eax
jle 0x54159b
push 0
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0xc4], 0x2d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
call fcn.0047f2e8
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.0040a364
mov dword [ebp - 0x6c], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.0040a364
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x6c], 0
jne 0x541519
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x70], 0
jne 0x541525
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x70]
jle 0x541533
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp dword [ebp - 0x6c], 0
je 0x5414a1
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
sub edx, eax
jl 0x5414a1
inc edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x8c]
call fcn.0040a1ec
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax]
call dword [edi + 0x60]
inc dword [ebp - 0x68]
inc dword [ebp - 0x8c]
dec dword [ebp - 0x9c]
jne 0x541563
jmp 0x5414a1
inc dword [ebp - 0x68]
jmp 0x5414a1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x5413ff.99
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040a364
mov dword [ebp - 0x7c], eax
jmp case.0x5413ff.99
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040a364
mov dword [ebp - 0x80], eax
jmp case.0x5413ff.99
mov eax, dword [ebp - 0x28]
mov edx, 0x541b78
call fcn.0040566c
sete byte [ebp - 0x95]
jmp case.0x5413ff.99
mov eax, dword [ebp - 0x28]
mov edx, 0x541b78
call fcn.0040566c
sete byte [ebp - 0x57]
jmp case.0x5413ff.99
mov eax, dword [ebp - 0x28]
mov edx, 0x541b78
call fcn.0040566c
sete byte [ebp - 0x56]
jmp case.0x5413ff.99
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040a364
mov dword [ebp - 0x5c], eax
jmp case.0x5413ff.99
mov edx, 0xff
mov eax, dword [ebp - 0x28]
call fcn.0040a364
mov dword [ebp - 0x64], eax
jmp case.0x5413ff.99
cmp dword [ebp - 0x74], 0xffffffff
jle 0x5418c0
mov eax, dword [0x6900d8]
mov edx, dword [ebp - 0x74]
cmp dword [eax + edx*4], 0
je 0x5418c0
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5418c0
cmp dword [ebp - 0x7c], 0
jne 0x541678
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x80], 0
jne 0x541684
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x80], eax
mov eax, 0x2c
call fcn.00402f80
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov edx, 0x2c
call fcn.0047eb7c
mov eax, dword [0x6900d8]
mov edx, dword [ebp - 0x74]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x94]
mov dword [edx], eax
mov eax, dword [ebp - 0x94]
mov edx, dword [ebx + 0x2c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x80]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
movzx edx, byte [ebp - 0x57]
mov byte [eax + 0x21], dl
movzx eax, byte [ebp - 0x64]
mov edx, dword [ebp - 0x94]
mov byte [edx + 0x22], al
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x94]
movzx edx, byte [ebp - 0x95]
mov byte [eax + 0x29], dl
mov eax, dword [ebp - 0x94]
movzx edx, byte [ebp - 0x56]
mov byte [eax + 0x28], dl
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp + 0x10]
call fcn.0041b0d8
mov dl, 1
mov eax, dword [0x418f7c]
call fcn.004042f8
mov dword [ebx + 0x2c], eax
jmp 0x5418c0
push 0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0xc4], 0x5e
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
cmp dword [ebp - 0x14], 0
jne 0x541784
push 0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0xc4], 0x2f
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0047f2e8
cmp dword [ebp - 0xc], 0
je 0x5418c0
lea eax, [ebp - 0x18]
call fcn.00405234
lea eax, [ebp - 0x1c]
call fcn.00405234
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x14]
mov eax, 0x541b84
call fcn.00405820
test eax, eax
jle 0x5417d5
push 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0xc4], 0x2c
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0047f2e8
jmp 0x5417e0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004052cc
mov ecx, 6
mov edx, 0x541b90
mov eax, dword [ebp - 0x18]
call fcn.0047f958
test al, al
je 0x541833
push 0
lea eax, [ebp - 0xe4]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.0047f2e8
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0x18]
call fcn.004052cc
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0040a364
mov dword [ebp - 0x50], eax
mov ecx, 6
mov edx, 0x541ba0
mov eax, dword [ebp - 0x1c]
call fcn.0047f958
test al, al
je 0x541878
push 0
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 0xc4], 0x3d
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0047f2e8
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0x1c]
call fcn.004052cc
lea eax, [ebp - 0xec]
mov edx, dword [ebp - 0xc]
call fcn.00405bc0
mov eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov eax, dword [ebp + 0x14]
call fcn.0047dca8
lea eax, [ebp - 0xf0]
mov edx, dword [ebp - 0xc]
call fcn.00405bc0
mov edx, dword [ebp - 0xf0]
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047ccf8
add esi, eax
mov edx, dword [ebp - 4]
mov eax, 0x541a7c
call fcn.00405820
test eax, eax
jle 0x5418ec
mov edx, dword [ebp - 4]
mov eax, 0x541a88
call fcn.00405820
test eax, eax
jle 0x5418ec
cmp dword [ebp - 4], 0
jne 0x540f14
cmp dword [ebp - 4], 0
je 0x54193a
lea eax, [ebp - 0xf4]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov eax, dword [ebp + 0x14]
call fcn.0047dca8
lea eax, [ebp - 0xf8]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov edx, dword [ebp - 0xf8]
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047ccf8
add esi, eax
cmp byte [ebp - 0x55], 0
je 0x541946
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x55], 0
cmp byte [ebp + 0x18], 0
je 0x541960
lea eax, [esi + 0xa]
cmp eax, dword [ebx + 0x20]
jle 0x54196e
add esi, 0xa
mov dword [ebx + 0x20], esi
jmp 0x54196e
lea eax, [esi + 5]
cmp eax, dword [ebx + 0x20]
jle 0x54196e
add esi, 5
mov dword [ebx + 0x20], esi
mov eax, dword [ebp - 0x44]
inc eax
add dword [ebp - 0x38], eax
jmp 0x540e64
cmp byte [ebp + 0x18], 0
je 0x541990
mov edx, dword [ebx + 0x20]
mov eax, 0x96
call fcn.0047fa80
mov dword [ebx + 0x20], eax
cmp byte [ebp + 0x18], 0
je 0x5419a6
mov eax, dword [ebp - 0x38]
add eax, 9
cmp eax, dword [ebx + 0x24]
jle 0x5419b4
mov dword [ebx + 0x24], eax
jmp 0x5419b4
mov eax, dword [ebp - 0x38]
add eax, 3
cmp eax, dword [ebx + 0x24]
jle 0x5419b4
mov dword [ebx + 0x24], eax
cmp byte [ebx + 0x28], 0
je 0x5419c0
mov eax, dword [ebx + 0x24]
sub dword [ebx + 0x1c], eax
cmp byte [ebp + 0x18], 0
je 0x5419dc
cmp dword [ebx + 0x18], 0x172
jle 0x5419dc
mov eax, dword [ebx + 0x20]
sar eax, 1
jns 0x5419d9
adc eax, 0
sub dword [ebx + 0x18], eax
mov byte [ebx + 0x40], 1
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x24]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541a61
lea eax, [ebp - 0xf8]
mov edx, 4
call fcn.00405a64
lea eax, [ebp - 0xe8]
mov edx, 6
call fcn.00405258
lea eax, [ebp - 0xd0]
mov edx, 2
call fcn.00405a64
lea eax, [ebp - 0xc8]
call fcn.00405234
lea eax, [ebp - 0xc0]
call fcn.00405234
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00405258
lea eax, [ebp + 0x28]
call fcn.00405234
ret