Function at 0x495680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x526e06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov al, byte [esp + 0x1b]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov cl, byte [esp + 0x2b]
mov dword [esp + 0x154], edi
mov byte [esp + 0x4c], cl
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dl, byte [esp + 0x2b]
xor eax, eax
mov byte [esp + 0x3c], dl
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov edx, dword [ebx + 0x13c]
mov byte [esp + 0x154], 2
inc edx
mov ecx, edx
mov dword [ebx + 0x13c], edx
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x16c]
cmp ecx, edi
je 0x495896
mov edx, dword [esp + 0x164]
push ecx
mov ecx, esp
mov dword [esp + 0x100], esp
push edx
call fcn.005123b2
lea eax, [esp + 0x7c]
mov ecx, ebx
push eax
call fcn.0049b4c0
mov ebp, dword [eax]
mov eax, dword [eax + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x64], eax
mov ecx, 1
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x98], ebp
call fcn.0045a1c0
mov eax, dword [ebx + 0x260]
lea esi, [ebx + 0x258]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004a1470
cmp ebp, edi
je 0x495c53
cmp dword [esp + 0x64], edi
je 0x495c53
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
push eax
call fcn.0045aa90
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push edi
call fcn.004cf700
xor eax, eax
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
jle 0x495824
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push ecx
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.0045a1c0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x20]
push eax
push 1
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], 0
call fcn.0045a500
dec ebp
jne 0x4957ec
mov edi, dword [esp + 0x64]
xor ebx, ebx
cmp edi, ebx
jle 0x49585c
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.004a1470
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
push 1
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.0045a500
dec edi
jne 0x49582e
mov ebx, dword [esp + 0x5c]
lea edx, [esp + 0x3c]
push edx
push 1
mov eax, dword [ebx + 0x270]
lea esi, [ebx + 0x268]
push eax
mov ecx, esi
call fcn.004a1700
mov eax, dword [esi + 8]
lea ecx, [esp + 0x4c]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004a1700
mov ebp, dword [esp + 0x60]
jmp 0x495c53
mov esi, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x25c]
shl esi, 4
add esi, ecx
lea edx, [esp + 0x10]
cmp edx, esi
je 0x4959cc
mov edi, dword [esi + 4]
test edi, edi
je 0x4958d2
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x49590a
mov eax, dword [esi + 8]
push 0
push eax
push edi
call fcn.0045aa90
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004cf700
mov ecx, esi
call fcn.0045a190
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x4959c8
mov ecx, esi
call fcn.0045a190
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004a0040
cmp edi, eax
ja 0x49596e
mov edi, dword [esi + 4]
lea ecx, [esp + 0x10]
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
push ecx
lea edi, [edi + edx*8]
push edi
push eax
call fcn.0045aa90
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
push eax
push edi
call fcn.004a0070
mov ecx, esi
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov dword [esp + 0x18], edx
jmp 0x4959c8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004cf700
mov edx, dword [esp + 0x14]
push edx
call fcn.005123a7
add esp, 4
mov ecx, esi
call fcn.0045a190
test eax, eax
jge 0x49599b
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0051237e
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.004a0070
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov ecx, 6
lea edi, [esp + 0x84]
lea edx, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xf4]
mov esi, dword [ebx + 0x26c]
mov ebp, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
shl edi, 5
add esi, edi
mov dword [esp + 0x60], ebp
cmp edx, esi
mov dword [esp + 0x64], ecx
je 0x495b2d
mov edx, dword [esi + 4]
test edx, edx
jne 0x495a1d
xor ecx, ecx
jmp 0x495a25
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp dword [esp + 0x40], 0
jne 0x495a30
xor eax, eax
jmp 0x495a37
sub eax, dword [esp + 0x40]
sar eax, 2
cmp ecx, eax
ja 0x495a73
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 8]
push ecx
push eax
push edx
call fcn.004b8f70
mov edx, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
call fcn.004cf700
mov ecx, esi
call fcn.004b8a80
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*4]
mov dword [esp + 0x44], edx
jmp 0x495b2d
mov ecx, esi
call fcn.004b8a80
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.004b8af0
cmp ebp, eax
ja 0x495ad2
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x3c]
call fcn.004b8a80
mov ecx, dword [esp + 0x40]
lea ebp, [ebp + eax*4]
mov eax, dword [esi + 4]
push ecx
push ebp
push eax
call fcn.004b8f70
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
push ebp
call fcn.004a00b0
mov ecx, esi
call fcn.004b8a80
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*4]
mov dword [esp + 0x44], edx
jmp 0x495b29
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.004cf700
mov edx, dword [esp + 0x40]
push edx
call fcn.005123a7
add esp, 4
mov ecx, esi
call fcn.004b8a80
test eax, eax
jge 0x495aff
xor eax, eax
shl eax, 2
push eax
call fcn.0051237e
add esp, 4
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.004a00b0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ebp, dword [esp + 0x60]
mov esi, dword [ebx + 0x26c]
lea ecx, [esp + 0x4c]
lea esi, [esi + edi + 0x10]
cmp ecx, esi
je 0x495c53
mov eax, dword [esi + 4]
test eax, eax
jne 0x495b4e
xor edi, edi
jmp 0x495b56
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x4c]
call fcn.004b8a80
cmp edi, eax
ja 0x495b9e
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004b8f70
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.004cf700
mov ecx, esi
call fcn.004b8a80
mov edx, dword [esp + 0x50]
lea eax, [edx + eax*4]
mov dword [esp + 0x54], eax
jmp 0x495c53
mov ecx, esi
call fcn.004b8a80
lea ecx, [esp + 0x4c]
mov edi, eax
call fcn.004b8af0
cmp edi, eax
ja 0x495bfc
mov edi, dword [esi + 4]
lea ecx, [esp + 0x4c]
call fcn.004b8a80
mov ecx, dword [esp + 0x50]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.004b8f70
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x4c]
push edx
push eax
push edi
call fcn.004a00b0
mov ecx, esi
call fcn.004b8a80
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax*4]
mov dword [esp + 0x54], edx
jmp 0x495c53
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004cf700
mov edx, dword [esp + 0x50]
push edx
call fcn.005123a7
add esp, 4
mov ecx, esi
call fcn.004b8a80
test eax, eax
jge 0x495c29
xor eax, eax
shl eax, 2
push eax
call fcn.0051237e
add esp, 4
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x58]
call fcn.004a00b0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov edx, dword [ebx + 0x138]
xor edi, edi
inc edx
cmp ebp, edi
mov eax, edx
mov dword [ebx + 0x138], edx
mov dword [esp + 0xd8], eax
je 0x497a4f
mov ecx, dword [esp + 0x64]
cmp ecx, edi
je 0x497a4f
lea esi, [ebx + 0x24]
add eax, ecx
push 0x7259e4
mov ecx, esi
mov dword [ebx + 0x138], eax
call fcn.0051277a
push edi
mov ecx, ebx
call fcn.0049a9e0
push esi
mov ecx, ebx
call fcn.0049ce60
mov eax, dword [esi]
push esi
push eax
mov ecx, ebx
call fcn.0049a9b0
mov edi, dword [esp + 0x168]
push 0x7aa58c
mov edx, edi
mov eax, dword [edx]
mov dword [esp + 0xac], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xb0], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0xb4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xe0], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xe4], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0xe8], eax
xor eax, eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0xec], ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0xa8], eax
call fcn.005126ab
push 0x7aa58c
lea ecx, [esp + 0x100]
mov byte [esp + 0x158], 3
call fcn.005126ab
push 0x7aa58c
lea ecx, [esp + 0xc4]
mov byte [esp + 0x158], 4
call fcn.005126ab
push 0x7aa58c
lea ecx, [esp + 0x110]
mov byte [esp + 0x158], 5
call fcn.005126ab
push 0x7aa58c
lea ecx, [esp + 0xc0]
mov byte [esp + 0x158], 6
call fcn.005126ab
mov ecx, dword [esp + 0x164]
lea edx, [esp + 0x24]
lea eax, [esp + 0xbc]
push edx
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x164], 7
call fcn.0049cf20
lea ecx, [esp + 0x20]
call fcn.0051263d
lea eax, [esp + 0xbc]
push esi
lea ecx, [esp + 0x7c]
push eax
push ecx
mov ecx, ebx
call fcn.0049d750
mov edx, dword [esp + 0x160]
mov ecx, ebx
push edx
call fcn.0049acf0
mov edx, dword [esp + 0x16c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x38], eax
test edx, edx
mov dword [esp + 0x30], ecx
jne 0x49601c
test ebp, ebp
jle 0x495e11
mov edx, dword [esp + 0x40]
mov esi, dword [edx]
add edx, 4
add eax, esi
dec ebp
jne 0x495e03
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x64]
test esi, esi
jle 0x495e2b
mov edx, dword [esp + 0x50]
mov ebp, dword [edx]
add edx, 4
add ecx, ebp
dec esi
jne 0x495e1d
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0xa8]
push 0
push eax
mov eax, dword [esp + 0xb8]
sub eax, ebp
lea ecx, [esp + 0xc4]
push eax
push ecx
mov ecx, ebx
call fcn.0049e440
mov edx, dword [esp + 0xa8]
mov ecx, eax
mov eax, dword [edi + 8]
mov edi, dword [edi]
add ecx, edx
mov esi, eax
mov ebp, ecx
sub esi, edi
sub ebp, edx
mov dword [esp + 0xb0], ecx
cmp ebp, esi
jge 0x495ea9
mov esi, dword [ebx + 0x68]
dec esi
je 0x495e8d
dec esi
jne 0x495ea9
sub eax, edi
push 0
sub eax, ecx
add eax, edx
lea edx, [esp + 0xac]
push eax
push edx
jmp 0x495ea3
sub eax, edi
push 0
sub eax, ecx
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
push eax
call dword [0x52d770]
mov eax, dword [ebx + 0x70]
mov edi, 6
cmp eax, edi
mov eax, dword [ebx + 0x74]
jne 0x495ec4
mov edx, dword [esp + 0x30]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*2]
jmp 0x495ecb
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax*2]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x30], eax
add edx, eax
mov eax, dword [ebx + 0x60]
test eax, eax
mov dword [esp + 0xb4], edx
jl 0x495f1f
mov esi, dword [esp + 0x160]
test esi, esi
jne 0x495ef5
xor ecx, ecx
jmp 0x495ef8
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x58]
push 0
push 5
push edx
mov edx, dword [ebx + 0x54]
push edx
mov edx, dword [ebx + 0x48]
push edx
lea edx, [esp + 0xbc]
push edx
push eax
push ecx
lea ecx, [ebx + 0xb8]
call fcn.004a3dd0
jmp 0x495f83
mov ecx, dword [ebx + 0x64]
lea eax, [ebx + 0x64]
mov edx, dword [ecx - 8]
test edx, edx
je 0x495f7c
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call fcn.005123b2
lea ecx, [esp + 0xac]
mov byte [esp + 0x158], 7
call fcn.00497fc0
push eax
lea ecx, [esp + 0xb0]
call fcn.00497fb0
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0x168]
push eax
mov eax, dword [esp + 0xb4]
push edx
push eax
push esi
mov ecx, ebx
call fcn.0049e610
jmp 0x495f83
mov esi, dword [esp + 0x160]
test esi, esi
je 0x495f8a
mov esi, dword [esi + 4]
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x50]
push ecx
mov ecx, dword [ebx + 0x4c]
push edx
push eax
lea edx, [esp + 0xb4]
push ecx
push edx
push esi
lea ecx, [ebx + 0xb8]
call fcn.004a4cb0
mov eax, dword [ebx + 0x70]
cmp eax, edi
mov eax, dword [ebx + 0x74]
jne 0x495fbb
lea eax, [eax + eax*2]
mov ecx, eax
lea edx, [esp + 0xa8]
neg ecx
neg eax
push ecx
push eax
push edx
call dword [0x52d75c]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x38]
sub ecx, esi
cmp eax, ecx
jge 0x49601c
mov esi, dword [esp + 0x60]
sub ecx, eax
mov eax, ecx
cdq
idiv esi
mov edi, eax
mov eax, ecx
cdq
idiv esi
mov eax, dword [esp + 0x40]
mov ebp, dword [eax]
add ebp, edx
mov dword [eax], ebp
xor eax, eax
test esi, esi
jle 0x49601c
mov ecx, dword [esp + 0x40]
mov ebp, dword [ecx + eax*4]
add ebp, edi
mov dword [ecx + eax*4], ebp
inc eax
cmp eax, esi
jl 0x49600b
mov esi, dword [esp + 0x164]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jge 0x497020
push ecx
mov dword [esp + 0x104], eax
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x725a80
mov dword [esp + 0x100], eax
call fcn.005126ab
lea ecx, [esp + 0x104]
push ecx
push esi
mov ecx, ebx
call fcn.0049d240
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x725a78
call fcn.005126ab
lea edx, [esp + 0xfc]
mov ecx, ebx
push edx
push esi
call fcn.0049d240
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x100]
cmp ecx, eax
jge 0x496ffe
lea edi, [ebx + 0x24]
push 0x725a80
mov ecx, edi
call fcn.0051277a
push 0
mov ecx, ebx
call fcn.0049a9e0
mov eax, dword [edi]
push edi
push eax
mov ecx, ebx
call fcn.0049a9b0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xd8]
mov esi, dword [ebx + 0x25c]
add eax, ecx
shl eax, 4
add esi, eax
lea edx, [esp + 0x10]
cmp edx, esi
mov dword [esp + 0x78], eax
je 0x496236
mov ebp, dword [esi + 4]
test ebp, ebp
jne 0x4960f5
mov dword [esp + 0x38], ebp
jmp 0x49610f
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, ebp
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49611b
xor edx, edx
jmp 0x496136
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp dword [esp + 0x38], edx
ja 0x496177
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
push edx
push eax
push ebp
call fcn.0045aa90
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004cf700
mov ecx, esi
call fcn.0045a190
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x496236
lea ecx, [esp + 0x10]
call fcn.004a0040
mov ecx, esi
mov ebp, eax
call fcn.0045a190
cmp eax, ebp
ja 0x4961dc
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x10]
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
push ecx
lea ebp, [ebp + edx*8]
push ebp
push eax
call fcn.0045aa90
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
push eax
push ebp
call fcn.004a0070
mov ecx, esi
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov dword [esp + 0x18], edx
jmp 0x496236
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004cf700
mov edx, dword [esp + 0x14]
push edx
call fcn.005123a7
add esp, 4
mov ecx, esi
call fcn.0045a190
test eax, eax
jge 0x496209
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0051237e
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.004a0070
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x24]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x110]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x44], 0
call fcn.0049cf20
lea ecx, [esp + 0x108]
call fcn.0051263d
lea edx, [esp + 0xc4]
push edi
lea eax, [esp + 0x148]
push edx
push eax
mov ecx, ebx
call fcn.0049d750
mov ecx, dword [esp + 0x160]
push ecx
mov ecx, ebx
call fcn.0049acf0
mov esi, dword [esp + 0x164]
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
mov ecx, dword [edx - 8]
cmp eax, ecx
jge 0x496e55
push ecx
mov dword [esp + 0xf4], eax
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x725a74
mov dword [esp + 0x40], eax
call fcn.005126ab
lea eax, [esp + 0xf4]
mov ecx, ebx
push eax
push esi
call fcn.0049d240
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x725a70
call fcn.005126ab
lea ecx, [esp + 0x3c]
push ecx
push esi
mov ecx, ebx
call fcn.0049d240
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jge 0x496e30
push 0x725a70
mov ecx, edi
call fcn.0051277a
push 0
mov ecx, ebx
call fcn.0049a9e0
mov eax, dword [edi]
push edi
push eax
mov ecx, ebx
call fcn.0049a9b0
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x84]
lea eax, [ebp + ebp*2]
mov dword [esp + 0x24], edx
lea eax, [ecx + eax*8]
mov ecx, 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x84]
test ecx, ecx
jge 0x4963cd
mov edx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
dec edx
mov dword [esp + 0x20], edx
cmp ebp, dword [esp + 0x20]
jge 0x4963cd
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
inc ebp
add edx, 0x18
test eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], edx
je 0x497096
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ebp
jbe 0x497096
mov esi, dword [esp + 0x2c]
mov ecx, 6
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x84]
test eax, eax
jl 0x49636f
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x24]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x10c]
push eax
push ecx
mov ecx, ebx
call fcn.0049cf20
lea ecx, [esp + 0x104]
call fcn.0051263d
lea eax, [ebx + 0x24]
lea edx, [esp + 0xc4]
push eax
lea eax, [esp + 0x140]
push edx
push eax
mov ecx, ebx
call fcn.0049d750
mov ecx, dword [esp + 0x160]
mov esi, dword [eax]
push ecx
mov ecx, ebx
mov ebp, dword [eax + 4]
call fcn.0049acf0
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x4968f1
cmp esi, 1
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ebp
jle 0x4964aa
mov eax, dword [esp + 0x34]
add esi, eax
inc eax
cmp eax, esi
jge 0x4964aa
lea edx, [eax + eax*2]
shl edx, 3
sub esi, eax
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x14]
mov ecx, 6
add eax, edx
lea edi, [esp + 0x110]
mov esi, eax
add edx, 0x18
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], ecx
mov ecx, 6
lea esi, [esp + 0x110]
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
jne 0x496465
cmp ebp, 1
jle 0x496890
mov cl, byte [esp + 0x2b]
xor ebx, ebx
mov byte [esp + 0x68], cl
xor ecx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x154], 0xa
add ebp, eax
inc eax
cmp eax, ebp
jge 0x49686d
mov edx, dword [esp + 0x34]
lea edx, [edx + edx*2]
shl edx, 3
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0xd8]
add edx, eax
shl edx, 4
sub ebp, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebp
jmp 0x496516
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov esi, dword [eax + 0x25c]
lea eax, [esp + 0x68]
add esi, edx
cmp eax, esi
je 0x496689
mov edi, dword [esi + 4]
test edi, edi
jne 0x49653d
xor ebp, ebp
jmp 0x496555
mov edx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub edx, edi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
test ecx, ecx
jne 0x49655d
xor edx, edx
jmp 0x496572
sub ebx, ecx
mov eax, 0x2aaaaaab
mov edx, ebx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
ja 0x4965c7
mov eax, dword [esi + 8]
push ecx
push eax
push edi
call fcn.0045aa90
mov ecx, dword [esp + 0x7c]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.004cf700
mov eax, dword [esi + 4]
test eax, eax
jne 0x49659e
xor edx, edx
jmp 0x4965b4
mov esi, dword [esi + 8]
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, dword [esp + 0x6c]
lea edx, [edx + edx*2]
lea eax, [ecx + edx*8]
mov dword [esp + 0x70], eax
jmp 0x496689
lea ecx, [esp + 0x68]
call fcn.004a0040
mov ecx, esi
mov edi, eax
call fcn.0045a190
cmp eax, edi
ja 0x49662b
mov edi, dword [esi + 4]
lea ecx, [esp + 0x68]
call fcn.0045a190
mov edx, dword [esp + 0x6c]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
push edx
lea edi, [edi + ecx*8]
push edi
push eax
call fcn.0045aa90
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 8]
add esp, 0xc
push ecx
push eax
push edi
lea ecx, [esp + 0x74]
call fcn.004a0070
mov ecx, esi
call fcn.0045a190
mov ecx, dword [esp + 0x6c]
lea edx, [eax + eax*2]
lea eax, [ecx + edx*8]
mov dword [esp + 0x70], eax
jmp 0x496689
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.004cf700
mov eax, dword [esp + 0x6c]
push eax
call fcn.005123a7
add esp, 4
mov ecx, esi
call fcn.0045a190
test eax, eax
jge 0x496658
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
call fcn.0051237e
add esp, 4
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x74]
call fcn.004a0070
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x80]
lea edi, [esp + 0x110]
lea eax, [edx + ecx]
mov ecx, 6
mov esi, eax
lea edx, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
lea esi, [esp + 0x110]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], ecx
mov ecx, 6
mov edi, eax
mov eax, dword [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x25c]
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + eax]
cmp esi, edx
je 0x49684f
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
test ebx, ebx
jne 0x4966fa
mov dword [esp + 0xb8], 0
jmp 0x496716
mov ecx, ebp
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0xb8], edx
mov edi, dword [esi + 4]
test edi, edi
jne 0x496721
xor edx, edx
jmp 0x496737
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp dword [esp + 0xb8], edx
ja 0x49679a
push edi
push ebp
push ebx
call fcn.0045aa90
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, esi
push edx
push eax
call fcn.004cf700
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x496772
xor edx, edx
lea ecx, [edx + edx*2]
mov edx, dword [esi + 4]
lea eax, [edx + ecx*8]
mov dword [esi + 8], eax
jmp 0x49684f
mov ecx, dword [esp + 0x70]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*2]
mov edx, dword [esi + 4]
lea eax, [edx + ecx*8]
mov dword [esi + 8], eax
jmp 0x49684f
lea ecx, [esp + 0x68]
call fcn.0045a190
mov ecx, esi
mov edi, eax
call fcn.004a0040
cmp edi, eax
ja 0x4967fb
mov edi, dword [esp + 0x6c]
mov ecx, esi
call fcn.0045a190
mov edx, dword [esi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x6c]
push edx
lea edi, [edi + ecx*8]
push edi
push eax
call fcn.0045aa90
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x7c]
add esp, 0xc
push ecx
push edx
push edi
mov ecx, esi
call fcn.004a0070
lea ecx, [esp + 0x68]
call fcn.0045a190
mov ecx, dword [esi + 4]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov dword [esi + 8], edx
jmp 0x49684f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004cf700
mov eax, dword [esi + 4]
push eax
call fcn.005123a7
add esp, 4
lea ecx, [esp + 0x68]
call fcn.0045a190
test eax, eax
jge 0x496825
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.0051237e
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push eax
push ecx
mov ecx, esi
call fcn.004a0070
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add ecx, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
jne 0x49650e
mov ecx, dword [esp + 0x6c]
push ecx
mov byte [esp + 0x158], 7
call fcn.005123a7
mov ebx, dword [esp + 0x60]
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
xor ecx, ecx
lea edx, [esp + 0xdc]
push ecx
push ecx
push ecx
xor eax, eax
push ecx
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
call dword [0x52d760]
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], eax
jmp 0x496b0f
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x34]
test edx, edx
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe4], ecx
jle 0x496948
mov eax, dword [esp + 0x40]
mov ecx, edx
mov esi, dword [eax]
add eax, 4
add edi, esi
dec ecx
mov dword [esp + 0xdc], edi
jne 0x496937
mov ecx, dword [esp + 0x84]
mov esi, edi
test ecx, ecx
mov dword [esp + 0xe4], esi
jle 0x496974
mov eax, dword [esp + 0x40]
lea eax, [eax + edx*4]
mov edx, dword [eax]
add eax, 4
add esi, edx
dec ecx
mov dword [esp + 0xe4], esi
jne 0x496963
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jle 0x496994
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
add eax, 4
add ebp, edx
dec ecx
mov dword [esp + 0xe0], ebp
jne 0x496983
mov edx, dword [esp + 0x88]
mov eax, ebp
test edx, edx
mov dword [esp + 0xe8], eax
jle 0x4969ce
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0xa4]
lea ecx, [ecx + edi*4]
mov edi, dword [ecx]
add ecx, 4
add eax, edi
dec edx
mov dword [esp + 0xe8], eax
jne 0x4969b6
mov edi, dword [esp + 0xdc]
mov edx, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0x90]
push edx
mov edx, dword [ebx + 0x8c]
push eax
push ecx
push edx
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], esi
call fcn.0051c9ed
mov eax, dword [ebx + 0x60]
mov esi, dword [esp + 0x160]
test eax, eax
jl 0x496a50
test esi, esi
jne 0x496a28
xor ecx, ecx
jmp 0x496a2b
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x58]
push 0
push 5
push edx
mov edx, dword [ebx + 0x54]
push edx
mov edx, dword [ebx + 0x48]
push edx
lea edx, [esp + 0xdc]
push edx
push eax
push ecx
lea ecx, [ebx + 0xb8]
call fcn.004a3dd0
test esi, esi
jne 0x496a58
xor eax, eax
jmp 0x496a5b
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x50]
push 1
push ecx
mov ecx, dword [ebx + 0x4c]
push edx
lea edx, [esp + 0xd4]
push ecx
push edx
push eax
lea ecx, [ebx + 0xb8]
call fcn.004a4cb0
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x496aa8
cmp dword [ebx + 0x70], 6
jne 0x496a94
push 3
push 3
push 3
push 3
jmp 0x496a9c
push 1
push 1
push 1
push 1
lea ecx, [esp + 0xd8]
call fcn.0051c9ed
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x84]
push eax
mov eax, dword [ebx + 0x7c]
push ecx
push edx
push eax
lea ecx, [esp + 0xd8]
call fcn.0051c9ed
mov eax, dword [ebx + 0x6c]
dec eax
je 0x496ae8
dec eax
jne 0x496b0f
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x90]
sub ecx, eax
jmp 0x496b08
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x90]
sub eax, ecx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0xcc], ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0xb8], 0
mov edx, dword [esp + 0x164]
mov eax, dword [edx]
cmp esi, dword [eax - 8]
jge 0x496d37
push ecx
mov dword [esp + 0x24], esi
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x725a6c
mov dword [esp + 0x34], esi
call fcn.005126ab
mov esi, dword [esp + 0x168]
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, ebx
call fcn.0049d240
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x7259e4
call fcn.005126ab
lea edx, [esp + 0x30]
mov ecx, ebx
push edx
push esi
call fcn.0049d240
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
mov esi, edx
jl 0x496b91
mov esi, ecx
mov eax, dword [esp + 0x24]
xor edi, edi
xor ebp, ebp
cmp esi, eax
jle 0x496c21
mov ecx, esi
lea edx, [esp + 0x9c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x168]
push eax
push edx
call fcn.0050e9bc
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x158], 0xb
call fcn.0051272a
lea ecx, [esp + 0x9c]
mov byte [esp + 0x154], 7
call fcn.0051263d
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x164]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x140]
push eax
push ecx
mov ecx, ebx
call fcn.00497fd0
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x24], esi
jmp 0x496cf6
cmp ecx, edx
jge 0x496cbb
mov esi, dword [esp + 0x164]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
push esi
mov ecx, ebx
call fcn.0049b7e0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
sub ecx, eax
lea edx, [esp + 0xec]
push ecx
push eax
push edx
mov ecx, esi
call fcn.0050e9bc
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x158], 0xc
call fcn.0051272a
lea ecx, [esp + 0xec]
mov byte [esp + 0x154], 7
call fcn.0051263d
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x164]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x138]
push eax
push ecx
mov ecx, ebx
call fcn.00495680
mov edi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x496cf2
push ecx
mov dword [esp + 0xbc], 1
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x7251c4
mov dword [esp + 0x2c], edx
call fcn.005126ab
mov eax, dword [esp + 0x168]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, ebx
call fcn.0049d380
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x496d18
cmp dword [esp + 0x8c], edi
jg 0x496d11
mov dword [esp + 0x8c], edi
add dword [esp + 0x90], ebp
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0xb8]
add ecx, ebp
test eax, eax
mov dword [esp + 0xcc], ecx
je 0x496b1e
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x496df2
mov eax, dword [ebx + 0x90]
mov edi, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x7c]
mov edx, dword [esp + 0x8c]
add eax, edi
add eax, esi
mov esi, dword [ebx + 0x94]
mov edi, dword [ebx + 0x84]
add eax, ebp
mov ebp, dword [ebx + 0x88]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x94], edx
add eax, edx
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x94], eax
add edx, esi
add edx, ebp
add edx, edi
add ecx, edx
mov edx, dword [ebx + 0x74]
test edx, edx
mov dword [esp + 0x98], ecx
je 0x496dd6
cmp dword [ebx + 0x70], 6
jne 0x496dc2
add eax, 6
add ecx, 6
mov dword [esp + 0x94], eax
jmp 0x496dcf
add eax, 2
add ecx, 2
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x84]
lea eax, [eax + eax*2]
lea edi, [ecx + eax*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x34]
add edi, edx
push 0x725a70
mov dword [esp + 0x38], edi
lea edi, [ebx + 0x24]
mov ecx, edi
call fcn.0051277a
push 1
mov ecx, ebx
call fcn.0049a9e0
test eax, eax
je 0x496295
mov eax, dword [esp + 0x160]
push eax
jmp 0x49628e
push ecx
mov dword [esp + 0x28], eax
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x7251c4
call fcn.005126ab
lea ecx, [esp + 0x28]
push ecx
push esi
mov ecx, ebx
call fcn.0049d380
mov eax, dword [ebx + 0x25c]
mov edx, dword [esp + 0x78]
lea ebp, [edx + eax]
lea eax, [esp + 0x10]
cmp ebp, eax
je 0x496fbd
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x496e7c
mov dword [esp + 0x20], edi
jmp 0x496e97
mov ecx, dword [esp + 0x18]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x20], edx
mov esi, dword [ebp + 4]
test esi, esi
jne 0x496ea2
xor edx, edx
jmp 0x496eb8
mov ecx, dword [ebp + 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [esp + 0x20], edx
ja 0x496f08
mov ecx, dword [esp + 0x18]
mov edx, esi
cmp edi, ecx
mov dword [esp + 0x78], ecx
mov eax, edi
je 0x496ee7
mov ecx, 6
mov esi, eax
mov edi, edx
add eax, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x78]
add edx, 0x18
cmp eax, ecx
jne 0x496ece
mov ecx, dword [ebp + 8]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x10]
call fcn.0045a190
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
lea ecx, [eax + edx*8]
mov dword [ebp + 8], ecx
jmp 0x496fbd
mov ecx, ebp
call fcn.004a0040
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0045a190
cmp eax, esi
ja 0x496f69
mov esi, dword [esp + 0x14]
mov ecx, ebp
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
lea esi, [esi + edx*8]
push eax
push esi
push ecx
call fcn.0045aa90
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, ebp
push edx
push eax
push esi
call fcn.004a0070
lea ecx, [esp + 0x10]
call fcn.0045a190
mov edx, dword [ebp + 4]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov dword [ebp + 8], eax
jmp 0x496fbd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
push edx
mov ecx, ebp
call fcn.004cf700
mov eax, dword [ebp + 4]
push eax
call fcn.005123a7
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0045a190
test eax, eax
jge 0x496f93
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0051237e
add esp, 4
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004a0070
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov edi, dword [esp + 0xa4]
push 0x725a80
inc edi
lea ecx, [ebx + 0x24]
mov dword [esp + 0xa8], edi
call fcn.0051277a
push 1
mov ecx, ebx
call fcn.0049a9e0
test eax, eax
je 0x49601c
mov eax, dword [esp + 0x160]
mov ecx, ebx
push eax
call fcn.0049acf0
jmp 0x49601c
push ecx
mov dword [esp + 0x28], eax
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x7251c4
call fcn.005126ab
lea ecx, [esp + 0x28]
push ecx
push esi
mov ecx, ebx
call fcn.0049d380
mov ecx, dword [esp + 0x16c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
je 0x497966
mov ecx, dword [esp + 0x60]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x34], eax
jl 0x49734d
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x497338
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x20], ecx
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x25c]
mov edx, dword [esp + 0x2c]
lea ebp, [edx + eax]
lea eax, [esp + 0x10]
cmp eax, ebp
je 0x497215
mov esi, dword [ebp + 4]
test esi, esi
jne 0x4970d4
xor edi, edi
jmp 0x4970ec
lea edx, [esp + 0x2b]
lea ecx, [esp + 0x68]
push edx
push 0x725a50
call fcn.0049e950
lea eax, [esp + 0x68]
lea ecx, [esp + 0x110]
push eax
mov byte [esp + 0x158], 9
call fcn.00497c50
lea ecx, [esp + 0x110]
push 0x70d438
push ecx
call fcn.00501492
mov ecx, dword [ebp + 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov edi, edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4970f8
xor edx, edx
jmp 0x497111
mov eax, dword [esp + 0x18]
sub eax, ecx
mov edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
ja 0x497157
mov edi, dword [ebp + 8]
mov edx, ecx
cmp esi, edi
mov dword [esp + 0x78], edi
mov eax, esi
je 0x49713d
mov ecx, 6
mov esi, eax
mov edi, edx
add eax, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x78]
add edx, 0x18
cmp eax, ecx
jne 0x497124
mov ecx, ebp
call fcn.0045a190
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov dword [esp + 0x18], eax
jmp 0x497215
mov ecx, ebp
call fcn.0045a190
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.004a0040
cmp esi, eax
ja 0x4971bb
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x10]
call fcn.0045a190
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 4]
push edx
lea esi, [esi + ecx*8]
push esi
push eax
call fcn.0045aa90
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
add esp, 0xc
push ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004a0070
mov ecx, ebp
call fcn.0045a190
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x497215
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004cf700
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005123a7
add esp, 4
mov ecx, ebp
call fcn.0045a190
test eax, eax
jge 0x4971e8
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.0051237e
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
mov ebp, dword [ebp + 4]
push eax
push ecx
push ebp
lea ecx, [esp + 0x1c]
call fcn.004a0070
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x60]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x30], eax
jle 0x49731e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
lea edx, [ecx*4]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x84]
lea esi, [edx + ecx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
cmp ecx, edi
jne 0x4972f7
cmp edi, 1
jne 0x497284
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x94]
mov ecx, dword [edx + eax*4]
cmp ecx, esi
jg 0x49727f
mov ecx, esi
mov dword [edx + eax*4], ecx
jmp 0x4972f7
mov ebp, dword [esp + 0x40]
xor eax, eax
test edi, edi
jle 0x4972a2
mov ecx, dword [esp + 0x30]
mov edx, edi
lea ecx, [ebp + ecx*4]
mov esi, dword [ecx]
add ecx, 4
add eax, esi
dec edx
jne 0x497298
cmp eax, dword [esp + 0x8c]
jge 0x4972f3
mov ecx, dword [esp + 0x94]
sub ecx, eax
mov eax, ecx
cdq
idiv edi
mov esi, eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + ebp - 4]
add ecx, edx
test edi, edi
mov dword [eax + ebp - 4], ecx
jle 0x4972f3
mov edx, dword [esp + 0x30]
lea eax, [edx*4]
mov edx, edi
mov ecx, dword [esp + 0x40]
add eax, 4
mov ebp, dword [eax + ecx - 4]
add ebp, esi
dec edx
mov dword [eax + ecx - 4], ebp
jne 0x4972df
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
inc eax
add esi, 0x18
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], edx
jl 0x49723a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add ecx, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
jne 0x497072
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jle 0x497054
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x40]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x34], ecx
jl 0x497636
mov ecx, edx
test ecx, ecx
mov dword [esp + 0x30], 0
jle 0x49761d
mov eax, dword [esp + 0xd8]
shl eax, 4
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x25c]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10]
lea ebp, [ecx + eax]
cmp edx, ebp
je 0x497516
mov esi, dword [ebp + 4]
test esi, esi
jne 0x4973aa
xor edi, edi
jmp 0x4973c2
mov ecx, dword [ebp + 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4973ce
xor edx, edx
jmp 0x4973e7
mov eax, dword [esp + 0x18]
sub eax, ecx
mov edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
ja 0x497458
mov edi, dword [ebp + 8]
mov edx, ecx
cmp esi, edi
mov dword [esp + 0x78], edi
mov eax, esi
je 0x497413
mov ecx, 6
mov esi, eax
mov edi, edx
add eax, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x78]
add edx, 0x18
cmp eax, ecx
jne 0x4973fa
mov eax, dword [ebp + 4]
test eax, eax
jne 0x49742f
mov eax, dword [esp + 0x14]
xor edx, edx
lea edx, [edx + edx*2]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x497516
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x2aaaaaab
imul ebp
sar edx, 2
mov eax, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea edx, [edx + edx*2]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x497516
mov ecx, ebp
call fcn.0045a190
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.004a0040
cmp esi, eax
ja 0x4974bc
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x10]
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
push ecx
lea esi, [esi + edx*8]
push esi
push eax
call fcn.0045aa90
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
push eax
push esi
call fcn.004a0070
mov ecx, ebp
call fcn.0045a190
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov dword [esp + 0x18], edx
jmp 0x497516
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004cf700
mov edx, dword [esp + 0x14]
push edx
call fcn.005123a7
add esp, 4
mov ecx, ebp
call fcn.0045a190
test eax, eax
jge 0x4974e9
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0051237e
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
mov ebp, dword [ebp + 4]
push eax
push ecx
push ebp
lea ecx, [esp + 0x1c]
call fcn.004a0070
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x4975fd
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea edi, [esp + 0x84]
lea esi, [edx + ecx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x88], ebp
jne 0x4975e3
cmp ebp, 1
jne 0x49757a
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x98]
mov eax, dword [edx + esi*4]
cmp eax, ecx
jg 0x497575
mov eax, ecx
mov dword [edx + esi*4], eax
jmp 0x4975e3
xor eax, eax
test ebp, ebp
jle 0x497597
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
lea ecx, [ecx + edx*4]
mov edx, ebp
mov esi, dword [ecx]
add ecx, 4
add eax, esi
dec edx
jne 0x49758d
mov ecx, dword [esp + 0x98]
cmp eax, ecx
jge 0x4975e3
sub ecx, eax
mov eax, ecx
cdq
idiv ebp
mov edi, eax
mov eax, dword [esp + 0x30]
lea esi, [eax*4]
mov eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + esi]
add ecx, edx
test ebp, ebp
mov dword [eax + esi], ecx
jle 0x4975e3
mov eax, esi
mov edx, ebp
mov ecx, dword [esp + 0x50]
add eax, 4
mov ebp, dword [eax + ecx - 4]
add ebp, edi
dec edx
mov dword [eax + ecx - 4], ebp
jne 0x4975cf
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add ecx, 0x18
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
jne 0x49752e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], edx
jl 0x497386
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jle 0x497368
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xf4]
mov esi, dword [ebx + 0x26c]
mov edx, dword [esp + 0x50]
shl ecx, 5
mov dword [esp + 0x78], ecx
add esi, ecx
lea ecx, [esp + 0x3c]
cmp esi, ecx
je 0x49779a
mov edi, dword [esp + 0x44]
test eax, eax
jne 0x497668
xor ebp, ebp
jmp 0x49766f
mov ebp, edi
sub ebp, eax
sar ebp, 2
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x49767a
xor edx, edx
jmp 0x497682
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp ebp, edx
ja 0x4976d3
cmp eax, edi
mov edx, edi
je 0x4976a2
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x49768c
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esi + 8]
test eax, eax
mov dword [esp + 0xec], edx
jne 0x4976c0
mov eax, dword [esi + 4]
xor edi, edi
lea ecx, [eax + edi*4]
mov dword [esi + 8], ecx
jmp 0x497792
sub edi, eax
mov eax, dword [esi + 4]
sar edi, 2
lea ecx, [eax + edi*4]
mov dword [esi + 8], ecx
jmp 0x497792
test eax, eax
jne 0x4976db
xor ebp, ebp
jmp 0x4976e2
mov ebp, edi
sub ebp, eax
sar ebp, 2
test ecx, ecx
jne 0x4976ea
xor edx, edx
jmp 0x4976f2
mov edx, dword [esi + 0xc]
sub edx, ecx
sar edx, 2
cmp ebp, edx
ja 0x497740
test ecx, ecx
jne 0x4976fe
xor edx, edx
jmp 0x497706
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
lea edx, [eax + edx*4]
cmp eax, edx
je 0x49771f
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x49770d
mov edi, dword [esp + 0x44]
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
push edx
call fcn.004a00b0
lea ecx, [esp + 0x3c]
call fcn.004b8a80
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x497792
mov eax, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.004cf700
mov eax, dword [esi + 4]
push eax
call fcn.005123a7
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004b8a80
test eax, eax
jge 0x497767
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.0051237e
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [esp + 0x44]
mov ecx, esi
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004a00b0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + 0x26c]
mov esi, dword [esp + 0x78]
lea esi, [esi + ecx + 0x10]
lea ecx, [esp + 0x4c]
cmp esi, ecx
je 0x4978f7
mov ebp, dword [esp + 0x54]
test edx, edx
jne 0x4977c0
xor edi, edi
jmp 0x4977c7
mov edi, ebp
sub edi, edx
sar edi, 2
mov eax, dword [esi + 4]
test eax, eax
jne 0x4977d2
xor ecx, ecx
jmp 0x4977da
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
ja 0x49782c
mov ecx, eax
cmp edx, ebp
mov edi, ebp
mov eax, edx
je 0x4977fe
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
cmp eax, edi
jne 0x4977e8
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
test edx, edx
mov dword [esp + 0x78], eax
jne 0x497819
mov ecx, dword [esi + 4]
xor ebp, ebp
lea edx, [ecx + ebp*4]
mov dword [esi + 8], edx
jmp 0x4978ef
mov ecx, dword [esi + 4]
sub ebp, edx
sar ebp, 2
lea edx, [ecx + ebp*4]
mov dword [esi + 8], edx
jmp 0x4978ef
test edx, edx
jne 0x497834
xor edi, edi
jmp 0x49783b
mov edi, ebp
sub edi, edx
sar edi, 2
test eax, eax
jne 0x497843
xor ecx, ecx
jmp 0x49784b
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
ja 0x49789d
test eax, eax
jne 0x497857
xor ecx, ecx
jmp 0x49785f
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
lea ecx, [edx + ecx*4]
mov edi, eax
cmp edx, ecx
mov eax, edx
je 0x49787c
mov edx, dword [eax]
add eax, 4
mov dword [edi], edx
add edi, 4
cmp eax, ecx
jne 0x49786a
mov ebp, dword [esp + 0x54]
mov eax, dword [esi + 8]
push eax
push ebp
push ecx
mov ecx, esi
call fcn.004a00b0
lea ecx, [esp + 0x4c]
call fcn.004b8a80
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x4978ef
mov ecx, dword [esi + 8]
push ecx
push eax
mov ecx, esi
call fcn.004cf700
mov eax, dword [esi + 4]
push eax
call fcn.005123a7
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.004b8a80
test eax, eax
jge 0x4978c4
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0051237e
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.004a00b0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x9c]
test ecx, ecx
jle 0x497910
mov edi, dword [eax]
add eax, 4
add esi, edi
dec ecx
jne 0x497906
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xa0]
test eax, eax
jle 0x497929
mov edi, dword [edx]
add edx, 4
add ecx, edi
dec eax
jne 0x49791f
mov eax, dword [ebx + 0x70]
cmp eax, 6
mov eax, dword [ebx + 0x74]
jne 0x497937
lea eax, [eax + eax*2]
shl eax, 1
add esi, eax
add ecx, eax
mov edx, esi
push 1
xor ebp, ebp
push edx
lea eax, [esp + 0xc4]
mov dword [esp + 0xa8], ecx
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0xac], esi
call fcn.0049e440
mov edi, eax
jmp 0x497981
mov eax, dword [esp + 0x168]
mov edi, dword [eax + 8]
mov ecx, dword [eax]
sub edi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa0], ecx
xor ebp, ebp
push 0x7259e4
lea ecx, [ebx + 0x24]
call fcn.0051277a
push 1
mov ecx, ebx
call fcn.0049a9e0
test eax, eax
je 0x4979aa
mov edx, dword [esp + 0x160]
mov ecx, ebx
push edx
call fcn.0049acf0
mov esi, dword [esp + 0x15c]
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x154], 6
mov dword [esi], edi
mov dword [esi + 4], eax
call fcn.0051263d
lea ecx, [esp + 0x10c]
mov byte [esp + 0x154], 5
call fcn.0051263d
lea ecx, [esp + 0xc0]
mov byte [esp + 0x154], 4
call fcn.0051263d
lea ecx, [esp + 0xfc]
mov byte [esp + 0x154], 3
call fcn.0051263d
lea ecx, [esp + 0xc4]
mov byte [esp + 0x154], 2
call fcn.0051263d
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005123a7
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], ebp
push edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.005123a7
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
jmp 0x497a89
mov esi, dword [esp + 0x15c]
mov ecx, dword [esp + 0x40]
xor eax, eax
push ecx
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.005123a7
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], edi
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.005123a7
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x1c]
push eax
call fcn.005123a7
mov ecx, dword [esp + 0x158]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 0x14