Function at 0x501ba4
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x502865
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
jne 0x501ce3
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a01c
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 0xd
jne 0x501bd8
mov eax, dword [ebp - 0x38]
add eax, 0x90
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.0040762c
mov dword [ebp - 0x24], eax
mov eax, dword [0x5358cc]
call fcn.004071f4
mov dword [0x5358cc], eax
mov eax, dword [0x5359d0]
mov dword [0x5358dc], eax
mov eax, dword [0x5358dc]
cmp eax, dword [0x5358cc]
jle 0x501c42
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x501c5c
mov eax, dword [ebp - 0x60]
add eax, 0xae
mov dword [ebp - 0x44], eax
mov eax, dword [0x53598c]
call fcn.004071f4
mov dword [0x53598c], eax
imul eax, dword [ebp - 0x14], 0xbd
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x5359ac]
mov dword [0x535874], eax
jmp 0x501c85
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xb
jne 0x501c6b
mov eax, dword [ebp - 0x54]
add eax, 4
mov dword [ebp - 0x5c], eax
jmp 0x50284a
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
mov eax, dword [0x53598c]
mov dword [0x53595c], eax
mov eax, dword [0x53598c]
mov dword [0x53595c], eax
mov eax, dword [0x53595c]
cmp eax, dword [0x53595c]
jge 0x501d2d
mov eax, dword [ebp - 0x20]
add eax, 0x36
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.0040762c
mov dword [ebp - 0x4c], eax
mov eax, dword [0x535984]
mov dword [0x5359c4], eax
mov eax, dword [0x5358e4]
push eax
mov ecx, dword [0x53592c]
mov edx, dword [ebp - 0x44]
mov eax, dword [0x535984]
call fcn.004f8cf4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov ecx, dword [0x535864]
mov edx, dword [0x53595c]
mov eax, dword [ebp - 0x24]
call fcn.004f92d4
mov dword [0x535884], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
sub eax, 0x30
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x38]
call fcn.0040762c
mov dword [ebp - 0x30], eax
mov eax, dword [0x535874]
mov dword [0x5358fc], eax
mov eax, dword [ebp - 0x14]
shl eax, 5
lea eax, [eax + eax*2]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
cmp byte [eax + 0x14], 0
je 0x501f16
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x78]
mov edx, dword [edx]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 4]
mov edx, 0x502880
call fcn.0040a01c
mov eax, dword [0x535894]
call fcn.004071f4
mov dword [0x535894], eax
mov eax, dword [0x5359e8]
mov dword [0x5358a4], eax
mov eax, dword [0x5358a4]
cmp eax, dword [0x535894]
jle 0x501e08
mov eax, dword [ebp - 0x3c]
imul dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
imul eax, dword [ebp - 0x68], 0xbe
mov dword [ebp - 0x30], eax
jmp 0x501e1d
imul eax, dword [ebp - 0x44], 0x8f
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
add eax, 0xb1
mov dword [ebp - 0x58], eax
mov eax, dword [0x5359c4]
mov dword [0x5359d0], eax
imul eax, dword [ebp - 0x4c], 0x1a
mov dword [ebp - 0x54], eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x5028ac
call fcn.0040ade8
cmp eax, 0xe4
je 0x501e6b
mov ecx, 1
mov edx, dword [0x535a20]
mov eax, 0x5028e0
call fcn.0040ade8
cmp eax, 0x16
je 0x501e6b
mov eax, dword [0x5359b4]
mov dword [0x53588c], eax
imul eax, dword [ebp - 0x1c], 0xbc
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
push eax
call dword [ebp - 0x74]
fild dword [ebp - 0x4c]
call fcn.0040762c
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x1c]
jle 0x501eda
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 9
jge 0x501eee
inc dword [ebp - 0x60]
mov eax, dword [0x5359d0]
mov dword [0x535864], eax
mov eax, dword [0x53596c]
mov dword [0x535874], eax
mov eax, dword [0x535874]
cmp eax, dword [0x535864]
jle 0x501eee
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x501eee
mov eax, dword [ebp - 0x5c]
sub eax, 0x7e
mov dword [ebp - 0x48], eax
jmp 0x501eee
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x1c]
call fcn.00407638
mov dword [ebp - 0x18], eax
mov eax, dword [0x53590c]
mov dword [0x5358f4], eax
mov eax, dword [0x5358c4]
mov dword [0x535904], eax
mov eax, dword [0x53587c]
add eax, dword [0x5359c4]
cmp eax, dword [0x5359c4]
jne 0x501f75
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x58]
jle 0x501f5e
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xb
jge 0x501f55
inc dword [ebp - 0x64]
lea eax, [ebp - 4]
mov edx, 0x502934
call fcn.0040a01c
cmp dword [ebp - 0x64], 0xb
jl 0x501f3f
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53598c]
mov dword [0x5358c4], eax
fild dword [ebp - 0x28]
call fcn.0040762c
mov dword [ebp - 0x2c], eax
jmp 0x501fec
fild dword [ebp - 0x68]
call fcn.0040762c
mov dword [ebp - 0x3c], eax
mov eax, dword [0x53595c]
sub eax, dword [0x53588c]
mov edx, dword [0x535a40]
sub edx, dword [0x53588c]
cmp eax, edx
jle 0x501fa4
mov eax, dword [ebp - 0x24]
add eax, 0xd
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 9
jge 0x501fec
inc dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x5359b4
mov ecx, 0x5359c4
mov edx, 0x53595c
lea eax, [ebp - 0x20]
call fcn.004eb6e8
mov dword [0x53593c], eax
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 8
jne 0x501fb7
jmp 0x501fec
mov eax, dword [ebp - 0x18]
shl eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [0x5358e4]
mov dword [0x535974], eax
fild dword [ebp - 0x50]
call fcn.00407638
mov dword [ebp - 0x20], eax
mov eax, dword [0x535a40]
imul dword [0x5358ec]
mov dword [0x53586c], eax
mov eax, dword [0x5359e0]
mov dword [0x535874], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x502050
mov eax, dword [ebp - 0x84]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x502610
mov eax, dword [0x535a18]
mov dword [0x53597c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xe
jge 0x50211e
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x54]
cmp eax, edx
jge 0x5020c9
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xb
jge 0x5020cf
inc dword [ebp - 0x60]
mov eax, dword [0x535a00]
mov dword [0x535a50], eax
mov eax, dword [0x5359ac]
mov dword [0x53585c], eax
mov eax, dword [0x53585c]
cmp eax, dword [0x535a50]
jle 0x5020c1
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x60], 0xb
jl 0x502094
jmp 0x5020cf
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [0x535934]
add eax, dword [0x5359bc]
cmp eax, dword [0x5359bc]
jne 0x502114
mov eax, dword [0x535894]
sub eax, dword [0x53596c]
cmp eax, dword [0x5359d8]
jne 0x502114
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xe
jge 0x502114
inc dword [ebp - 0x64]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
cmp dword [ebp - 0x64], 0xe
jl 0x502100
cmp dword [ebp - 0x48], 0xe
jl 0x502076
mov eax, dword [0x5358ec]
mov dword [0x5358f4], eax
mov eax, dword [0x53585c]
cmp eax, dword [0x5358f4]
jle 0x502164
mov eax, dword [ebp - 0x34]
imul dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x53590c]
push eax
mov eax, dword [0x5358a4]
push eax
mov eax, dword [0x53598c]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
call fcn.004fafb4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x535964]
mov edx, dword [0x5358f4]
mov eax, dword [0x53588c]
call fcn.004f92d4
mov eax, dword [ebp - 0x68]
add eax, 0xf3
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.0040762c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a01c
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x50251e
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x70]
cmp dword [eax + edx*4], 0
je 0x50247b
mov eax, dword [0x535a20]
mov edx, dword [0x5359c8]
call fcn.0040aba0
jne 0x502221
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040abd8
mov eax, dword [ebp - 0x6c]
add eax, 0xc0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
shl eax, 2
lea eax, [eax + eax*8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x535a40]
mov dword [0x5358cc], eax
mov eax, dword [0x5359e0]
mov dword [0x5358dc], eax
mov eax, dword [ebp - 0x5c]
imul dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x5359d8]
mov dword [0x535944], eax
mov eax, dword [0x53595c]
call fcn.004071f4
mov dword [0x53595c], eax
mov eax, dword [0x535944]
cmp eax, dword [0x53595c]
jge 0x5022b4
mov eax, dword [ebp - 0x64]
add eax, 4
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.00407638
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x50228d
mov eax, dword [ebp - 0x88]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0x1a
jne 0x5022b4
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 5
jge 0x5022b4
inc dword [ebp - 0x48]
mov eax, dword [0x535a08]
mov dword [0x535864], eax
cmp dword [ebp - 0x48], 5
jl 0x5022a1
mov eax, dword [ebp - 0x18]
add eax, 0x31
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.0040762c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
sub eax, 0xf0
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb
jge 0x502329
inc dword [ebp - 0x14]
mov eax, dword [0x5359e0]
mov dword [0x5359e0], eax
mov eax, dword [0x5359e0]
cmp eax, dword [0x53595c]
jge 0x502319
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a01c
inc dword [ebp - 0x54]
cmp dword [ebp - 0x54], 0xc
jne 0x502303
jmp 0x502323
mov eax, dword [0x53586c]
mov dword [0x5358d4], eax
cmp dword [ebp - 0x14], 0xb
jl 0x5022e4
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x70]
mov eax, dword [eax + edx*4]
push eax
call dword [0x5359c0]
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x502364
mov eax, dword [ebp - 0x8c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x2a
jle 0x502379
mov eax, dword [0x5359e0]
mov dword [0x535874], eax
jmp 0x502383
imul eax, dword [ebp - 0x44], 0xe7
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 0xb
jne 0x502341
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x502984
call fcn.0040ade8
cmp eax, 0xc8
je 0x5023ee
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x5359ac]
sub eax, dword [0x5358ec]
cmp eax, dword [0x5359ac]
jge 0x502426
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x14]
cmp eax, 0xd5
jge 0x502426
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 8
jge 0x502426
inc dword [ebp - 0x60]
mov eax, dword [0x53594c]
mov dword [0x53586c], eax
cmp dword [ebp - 0x60], 8
jl 0x5023d9
jmp 0x502426
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, 0xd5
sub eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
add eax, 4
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.00407638
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5358c4]
mov dword [0x5359f8], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x58], eax
mov eax, dword [0x53595c]
sub eax, 0x56
mov dword [0x5358e4], eax
mov eax, dword [0x5358fc]
add eax, dword [0x53588c]
cmp eax, dword [0x53588c]
jle 0x502461
mov eax, dword [0x53598c]
add eax, dword [0x5358ac]
mov dword [0x5359ac], eax
jmp 0x50246e
mov eax, dword [0x53597c]
add eax, 4
mov dword [0x53586c], eax
mov eax, dword [0x53587c]
add eax, 0x19
mov dword [0x5358e4], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 8
jge 0x5024be
inc dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040abd8
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 0xe
jne 0x50248e
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x5024be
mov eax, dword [ebp - 0x6c]
imul dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040abd8
lea eax, [ebp - 8]
mov edx, 0x5029ac
call fcn.0040a01c
xor eax, eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xc
jge 0x502508
inc dword [ebp - 0x40]
mov eax, dword [0x535884]
mov dword [0x53597c], eax
cmp dword [ebp - 0x40], 0xc
jl 0x5024f5
imul eax, dword [ebp - 0x48], 0xa4
mov dword [ebp - 0x54], eax
inc dword [ebp - 0x70]
dec dword [ebp - 0x7c]
jne 0x5021bb
mov eax, dword [0x5358f4]
mov dword [0x53588c], eax
mov eax, dword [ebp - 0x34]
add eax, 0xd3
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 9
jge 0x502575
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.00407638
mov dword [ebp - 0x3c], eax
jmp 0x502575
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [0x535944]
mov edx, dword [0x535a28]
mov eax, dword [ebp - 0x38]
call fcn.004fafb4
mov dword [0x5358d4], eax
mov eax, dword [ebp - 0x78]
add eax, 8
mov edx, dword [0x4eb488]
call fcn.0040c0a8
lea eax, [ebp - 4]
mov edx, 0x5029d4
call fcn.0040a01c
mov eax, dword [0x535a30]
mov dword [0x53588c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
sub eax, 0xc8
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xc
jne 0x5025c7
mov eax, dword [0x5358ec]
call fcn.004071f4
mov dword [0x5358ec], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jge 0x502610
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x3c], 3
jl 0x5025fe
mov eax, dword [ebp - 0x78]
cmp dword [eax + 4], 0
je 0x50271d
imul eax, dword [ebp - 0x3c], 0x58
mov dword [ebp - 0x20], eax
mov eax, dword [0x5358fc]
add eax, dword [0x5358ac]
cmp eax, dword [0x5358ac]
jne 0x502641
imul eax, dword [ebp - 0x5c], 0xf0
mov dword [ebp - 0x28], eax
mov eax, 0x89
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x14]
call fcn.00407638
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x68]
call fcn.00407638
mov dword [ebp - 0x60], eax
jmp 0x502677
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 2
jne 0x502651
mov eax, dword [ebp - 0x24]
add eax, 0x97
mov dword [ebp - 0x44], eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5029f8
call fcn.0040ade8
cmp eax, 0xde
je 0x5026b0
mov eax, dword [0x53589c]
mov dword [0x5358d4], eax
jmp 0x5026ba
mov eax, dword [0x53588c]
mov dword [0x5359ac], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
push eax
call dword [0x5359a8]
mov eax, dword [ebp - 0x54]
imul dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, 0x43
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5358bc]
sub eax, dword [0x53596c]
cmp eax, 0xe3
jge 0x5026ff
mov eax, 0xf6
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x535864]
mov dword [0x53590c], eax
mov eax, dword [ebp - 0x60]
sub eax, 0xda
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 7
jge 0x5027c9
inc dword [ebp - 0x64]
mov eax, dword [0x535a48]
mov dword [0x535a50], eax
mov eax, dword [0x53585c]
call fcn.004071f4
mov dword [0x53585c], eax
mov eax, dword [0x53585c]
cmp eax, dword [0x535a50]
jle 0x502768
mov edx, dword [0x535a38]
mov eax, dword [ebp - 0x44]
call fcn.004f8804
mov dword [ebp - 0x68], eax
jmp 0x502772
imul eax, dword [ebp - 0x24], 0xf1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xe
jge 0x502798
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x44], 0xe
jl 0x502786
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040a01c
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xb
jne 0x5027a2
inc dword [ebp - 0x60]
cmp dword [ebp - 0x60], 4
jne 0x50279d
cmp dword [ebp - 0x64], 7
jl 0x50272c
lea eax, [ebp - 8]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040abd8
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
cmp eax, 0xcd
jge 0x502800
mov eax, dword [ebp - 0x6c]
imul dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x50280f
imul eax, dword [0x535a28], 0x8c
mov dword [0x535864], eax
mov eax, dword [0x535964]
mov dword [0x53587c], eax
mov eax, dword [0x535864]
add eax, 4
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
call fcn.00407638
mov dword [0x5358f4], eax
mov eax, dword [ebp - 0x78]
push eax
push 0
call dword [0x5359dc]
push eax
call dword [0x5359cc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50286c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409c54
ret