Function at 0x653600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x653608
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x6544bc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 1
mov eax, dword [ebx + 0x31c]
call fcn.004bf550
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x24c]
dec eax
test eax, eax
jl 0x653682
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebx + 0x320]
mov edi, dword [eax + 0x21c]
dec edi
test edi, edi
jle 0x65367c
mov dword [ebp - 8], 1
push 0
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x320]
call fcn.004c1a98
inc dword [ebp - 8]
dec edi
jne 0x653664
inc esi
dec dword [ebp - 0x14]
jne 0x65364c
mov eax, dword [ebx + 0x324]
cmp byte [eax + 0x170], 0
je 0x65377c
mov eax, dword [ebx + 0x374]
mov dword [ebx + 0x370], eax
test eax, eax
jle 0x653713
mov dword [ebp - 0x14], eax
mov esi, 1
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00409838
mov edx, dword [ebp - 0x18]
lea eax, [ebx + esi*4 + 0x328]
call fcn.00404b8c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00409838
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + esi*4 + 0x348]
mov ecx, 0x6544d8
call fcn.00404e3c
mov edi, esi
add edi, edi
mov edx, edi
dec edx
mov ecx, 0x2c
mov eax, dword [ebx + 0x320]
call fcn.004bf550
mov edx, edi
mov ecx, 0x3e
mov eax, dword [ebx + 0x320]
call fcn.004bf550
inc esi
dec dword [ebp - 0x14]
jne 0x6536ad
lea eax, [ebx + esi*4 + 0x348]
mov edx, 0x6544e8
call fcn.00404b8c
mov edi, esi
add edi, edi
mov edx, edi
dec edx
mov ecx, 0x30
mov eax, dword [ebx + 0x320]
call fcn.004bf550
mov edx, edi
mov ecx, 0x42
mov eax, dword [ebx + 0x320]
call fcn.004bf550
mov esi, dword [ebx + 0x370]
add esi, esi
add esi, 3
cmp esi, 0x12
jg 0x6538fe
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004bf550
inc esi
cmp esi, 0x13
jne 0x653761
jmp 0x6538fe
push 0x6544f8
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x308]
call fcn.00488108
push dword [ebp - 0x20]
push 0x654558
push 0x654564
push 0x654584
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404eb0
mov eax, dword [0x669de8]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.00483d8c
mov eax, esi
call fcn.004d882c
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.00483d80
mov dword [ebx + 0x370], 1
jmp 0x653874
mov edx, 0x65459c
mov eax, esi
call fcn.00484d94
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x370]
lea eax, [ebx + eax*4 + 0x328]
call fcn.00404b8c
mov edx, 0x6545b0
mov eax, esi
call fcn.00484d94
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x370]
lea eax, [ebx + eax*4 + 0x348]
call fcn.00404b8c
mov edx, dword [ebx + 0x370]
add edx, edx
dec edx
mov ecx, 0x2c
mov eax, dword [ebx + 0x320]
call fcn.004bf550
mov edx, dword [ebx + 0x370]
add edx, edx
mov ecx, 0x3e
mov eax, dword [ebx + 0x320]
call fcn.004bf550
inc dword [ebx + 0x370]
mov eax, esi
call fcn.0048643c
cmp byte [esi + 0xa1], 0
jne 0x65388a
cmp dword [ebx + 0x370], 8
jle 0x6537e4
mov eax, dword [ebx + 0x370]
lea eax, [ebx + eax*4 + 0x348]
mov edx, 0x6544e8
call fcn.00404b8c
mov edx, dword [ebx + 0x370]
add edx, edx
dec edx
mov ecx, 0x30
mov eax, dword [ebx + 0x320]
call fcn.004bf550
mov edx, dword [ebx + 0x370]
add edx, edx
mov ecx, 0x42
mov eax, dword [ebx + 0x320]
call fcn.004bf550
dec dword [ebx + 0x370]
mov esi, dword [ebx + 0x370]
add esi, esi
add esi, 3
cmp esi, 0x12
jg 0x6538fe
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004bf550
inc esi
cmp esi, 0x13
jne 0x6538e8
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x21c]
dec eax
test eax, eax
jl 0x653937
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004bf418
mov ecx, eax
mov edx, esi
mov eax, dword [ebx + 0x31c]
call fcn.004bf550
inc esi
dec dword [ebp - 0x14]
jne 0x653915
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x24c]
dec eax
test eax, eax
jl 0x653984
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebx + 0x320]
mov edi, dword [eax + 0x21c]
dec edi
test edi, edi
jle 0x65397e
mov dword [ebp - 8], 1
push 0
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x320]
call fcn.004c1a98
inc dword [ebp - 8]
dec edi
jne 0x653966
inc esi
dec dword [ebp - 0x14]
jne 0x65394e
lea eax, [ebp - 4]
mov edx, 0x6545c0
call fcn.00404bd0
mov eax, dword [ebx + 0x324]
cmp byte [eax + 0x170], 0
je 0x6539af
lea eax, [ebp - 4]
mov edx, 0x654608
call fcn.00404df8
jmp 0x6539bc
lea eax, [ebp - 4]
mov edx, 0x65461c
call fcn.00404df8
push dword [ebp - 4]
push 0x654638
push 0x654668
push 0x654680
push 0x65469c
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404eb0
mov eax, dword [ebx + 0x324]
cmp byte [eax + 0x170], 0
je 0x6539fe
lea eax, [ebp - 4]
mov edx, 0x6546dc
call fcn.00404df8
jmp 0x653a0b
lea eax, [ebp - 4]
mov edx, 0x6546f0
call fcn.00404df8
lea eax, [ebp - 4]
mov edx, 0x654704
call fcn.00404df8
mov eax, dword [0x669de8]
mov eax, dword [eax]
mov edi, dword [eax + 0x5c]
mov eax, edi
call fcn.00483d8c
mov eax, edi
call fcn.004d882c
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x308]
call fcn.00488108
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405bc0
lea eax, [ebp - 0x38]
push eax
mov eax, edi
call fcn.004d6c60
mov edx, 0x654724
call fcn.004ced68
pop edx
call fcn.004d0010
mov eax, edi
call fcn.00483d80
jmp 0x653f87
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x40]
mov edx, 0x654744
call fcn.00404f34
jne 0x653aae
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
mov edx, 0x654750
call fcn.00404f34
jne 0x653ad8
mov dword [ebp - 0xc], 1
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x48]
mov edx, 0x65475c
call fcn.00404f34
jne 0x653b02
mov dword [ebp - 0xc], 2
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x4c]
mov edx, 0x654768
call fcn.00404f34
jne 0x653b2c
mov dword [ebp - 0xc], 3
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x50]
mov edx, 0x654774
call fcn.00404f34
jne 0x653b56
mov dword [ebp - 0xc], 4
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x54]
mov edx, 0x654780
call fcn.00404f34
jne 0x653b80
mov dword [ebp - 0xc], 5
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x58]
mov edx, 0x65478c
call fcn.00404f34
jne 0x653baa
mov dword [ebp - 0xc], 6
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x5c]
mov edx, 0x654798
call fcn.00404f34
jne 0x653bd4
mov dword [ebp - 0xc], 7
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x60]
mov edx, 0x6547a4
call fcn.00404f34
jne 0x653bfe
mov dword [ebp - 0xc], 8
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x64]
mov edx, 0x6547b0
call fcn.00404f34
jne 0x653c28
mov dword [ebp - 0xc], 9
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x68]
mov edx, 0x6547bc
call fcn.00404f34
jne 0x653c52
mov dword [ebp - 0xc], 0xa
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x6c]
mov edx, 0x6547c8
call fcn.00404f34
jne 0x653c7c
mov dword [ebp - 0xc], 0xb
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
mov edx, 0x6547d4
call fcn.00404f34
jne 0x653ca6
mov dword [ebp - 0xc], 0xc
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x74]
mov edx, 0x6547e0
call fcn.00404f34
jne 0x653cd0
mov dword [ebp - 0xc], 0xd
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x78]
mov edx, 0x6547ec
call fcn.00404f34
jne 0x653cfa
mov dword [ebp - 0xc], 0xe
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x7c]
mov edx, 0x6547f8
call fcn.00404f34
jne 0x653d24
mov dword [ebp - 0xc], 0xf
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x80]
mov edx, 0x654804
call fcn.00404f34
jne 0x653d4e
mov dword [ebp - 0xc], 0x10
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x84]
mov edx, 0x654810
call fcn.00404f34
jne 0x653d7e
mov dword [ebp - 0xc], 0x11
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x88]
mov edx, 0x65481c
call fcn.00404f34
jne 0x653dae
mov dword [ebp - 0xc], 0x12
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x8c]
mov edx, 0x654828
call fcn.00404f34
jne 0x653dde
mov dword [ebp - 0xc], 0x13
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x90]
mov edx, 0x654834
call fcn.00404f34
jne 0x653e0e
mov dword [ebp - 0xc], 0x14
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x94]
mov edx, 0x654840
call fcn.00404f34
jne 0x653e3e
mov dword [ebp - 0xc], 0x15
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x98]
mov edx, 0x65484c
call fcn.00404f34
jne 0x653e6e
mov dword [ebp - 0xc], 0x16
mov edx, 0x654734
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x9c]
mov edx, 0x654858
call fcn.00404f34
jne 0x653e9e
mov dword [ebp - 0xc], 0x17
mov eax, dword [ebx + 0x370]
test eax, eax
jle 0x653eeb
mov dword [ebp - 0x14], eax
mov esi, 1
mov edx, 0x654864
mov eax, edi
call fcn.00484d94
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebx + esi*4 + 0x328]
call fcn.00404f34
jne 0x653ee5
mov eax, esi
add eax, eax
dec eax
mov dword [ebp - 0x10], eax
jmp 0x653eeb
inc esi
dec dword [ebp - 0x14]
jne 0x653eb0
cmp dword [ebp - 0xc], 0xffffffff
je 0x653f80
cmp dword [ebp - 0x10], 0xffffffff
je 0x653f80
mov edx, 0x654874
mov eax, edi
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xa4]
mov eax, 0x654884
call fcn.0040b048
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x320]
call fcn.004c1a98
mov edx, 0x654894
mov eax, edi
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xa8]
mov eax, 0x654884
call fcn.0040b048
mov eax, dword [ebp - 0xa8]
push eax
mov edx, dword [ebp - 0x10]
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x320]
call fcn.004c1a98
mov eax, edi
call fcn.0048643c
cmp byte [edi + 0xa1], 0
je 0x653a78
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x24c]
sub eax, 2
test eax, eax
jl 0x65432f
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0xb0]
push eax
mov ecx, esi
mov edx, 1
mov edi, dword [ebx + 0x320]
mov eax, edi
call fcn.004c1a18
mov eax, dword [ebp - 0xb0]
call fcn.00662f94
fstp qword [ebp - 0xb8]
wait
lea eax, [ebp - 0xbc]
push eax
mov ecx, esi
mov edx, 3
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0xbc]
call fcn.00662f94
fadd qword [ebp - 0xb8]
fstp xword [ebp - 0xc8]
wait
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
mov edx, 5
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0xcc]
call fcn.00662f94
fld xword [ebp - 0xc8]
faddp st(1)
fstp xword [ebp - 0xd8]
wait
lea eax, [ebp - 0xdc]
push eax
mov ecx, esi
mov edx, 7
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0xdc]
call fcn.00662f94
fld xword [ebp - 0xd8]
faddp st(1)
fstp xword [ebp - 0xe8]
wait
lea eax, [ebp - 0xec]
push eax
mov ecx, esi
mov edx, 9
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0xec]
call fcn.00662f94
fld xword [ebp - 0xe8]
faddp st(1)
fstp xword [ebp - 0xf8]
wait
lea eax, [ebp - 0xfc]
push eax
mov ecx, esi
mov edx, 0xb
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0xfc]
call fcn.00662f94
fld xword [ebp - 0xf8]
faddp st(1)
fstp xword [ebp - 0x108]
wait
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
mov edx, 0xd
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x10c]
call fcn.00662f94
fld xword [ebp - 0x108]
faddp st(1)
fstp xword [ebp - 0x118]
wait
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
mov edx, 0xf
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x11c]
call fcn.00662f94
fld xword [ebp - 0x118]
faddp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xac]
mov eax, 0x6548a0
call fcn.0040b048
mov eax, dword [ebp - 0xac]
push eax
mov edx, dword [ebx + 0x370]
add edx, edx
inc edx
mov ecx, esi
mov eax, edi
call fcn.004c1a98
lea eax, [ebp - 0x124]
push eax
mov ecx, esi
mov edx, 2
mov edi, dword [ebx + 0x320]
mov eax, edi
call fcn.004c1a18
mov eax, dword [ebp - 0x124]
call fcn.00662f94
fstp qword [ebp - 0xb8]
wait
lea eax, [ebp - 0x128]
push eax
mov ecx, esi
mov edx, 4
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x128]
call fcn.00662f94
fadd qword [ebp - 0xb8]
fstp xword [ebp - 0xc8]
wait
lea eax, [ebp - 0x12c]
push eax
mov ecx, esi
mov edx, 6
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x12c]
call fcn.00662f94
fld xword [ebp - 0xc8]
faddp st(1)
fstp xword [ebp - 0xd8]
wait
lea eax, [ebp - 0x130]
push eax
mov ecx, esi
mov edx, 8
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x130]
call fcn.00662f94
fld xword [ebp - 0xd8]
faddp st(1)
fstp xword [ebp - 0xe8]
wait
lea eax, [ebp - 0x134]
push eax
mov ecx, esi
mov edx, 0xa
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x134]
call fcn.00662f94
fld xword [ebp - 0xe8]
faddp st(1)
fstp xword [ebp - 0xf8]
wait
lea eax, [ebp - 0x138]
push eax
mov ecx, esi
mov edx, 0xc
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x138]
call fcn.00662f94
fld xword [ebp - 0xf8]
faddp st(1)
fstp xword [ebp - 0x108]
wait
lea eax, [ebp - 0x13c]
push eax
mov ecx, esi
mov edx, 0xe
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x13c]
call fcn.00662f94
fld xword [ebp - 0x108]
faddp st(1)
fstp xword [ebp - 0x118]
wait
lea eax, [ebp - 0x140]
push eax
mov ecx, esi
mov edx, 0x10
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x140]
call fcn.00662f94
fld xword [ebp - 0x118]
faddp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x120]
mov eax, 0x6548a0
call fcn.0040b048
mov eax, dword [ebp - 0x120]
push eax
mov edx, dword [ebx + 0x370]
add edx, edx
add edx, 2
mov ecx, esi
mov eax, edi
call fcn.004c1a98
inc esi
dec dword [ebp - 0x14]
jne 0x653fb1
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x21c]
dec eax
test eax, eax
jle 0x654412
mov dword [ebp - 0x14], eax
mov esi, 1
mov eax, dword [ebx + 0x320]
mov edi, dword [eax + 0x24c]
sub edi, 2
test edi, edi
jl 0x654408
inc edi
mov dword [ebp - 8], 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebx + 0x320]
mov ecx, dword [eax + 0x24c]
dec ecx
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x148]
call fcn.00662f94
fstp qword [ebp - 0xb8]
wait
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004c1a18
mov eax, dword [ebp - 0x14c]
call fcn.00662f94
fadd qword [ebp - 0xb8]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x144]
mov eax, 0x6548a0
call fcn.0040b048
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebx + 0x320]
mov ecx, dword [eax + 0x24c]
dec ecx
mov edx, esi
mov eax, dword [ebx + 0x320]
call fcn.004c1a98
inc dword [ebp - 8]
dec edi
jne 0x65436b
inc esi
dec dword [ebp - 0x14]
jne 0x65434c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6544c6
lea eax, [ebp - 0x14c]
mov edx, 0xd
call fcn.00404b5c
lea eax, [ebp - 0x10c]
call fcn.00404b38
lea eax, [ebp - 0xfc]
call fcn.00404b38
lea eax, [ebp - 0xec]
call fcn.00404b38
lea eax, [ebp - 0xdc]
call fcn.00404b38
lea eax, [ebp - 0xcc]
call fcn.00404b38
lea eax, [ebp - 0xbc]
call fcn.00404b38
lea eax, [ebp - 0xb0]
mov edx, 0x1d
call fcn.00404b5c
lea eax, [ebp - 0x3c]
call fcn.00404b38
lea eax, [ebp - 0x38]
call fcn.00405c34
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x20]
call fcn.00404b38
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 4]
call fcn.00404b38
ret