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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x50], 0
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x4c], 0
push 8
push 0
lea ecx, [ebp - 0x158]
push ecx
call fcn.0057ccd0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x514d33
jmp 0x51675c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00512bc0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x514d51
jmp 0x51675c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0050f3e0
add esp, 8
mov dword [ebp - 0xf4], eax
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x81
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005146c0
add esp, 0x14
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 2
jne 0x514da7
mov dword [ebp - 0x134], 1
jmp 0x514db1
mov dword [ebp - 0x134], 0
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jle 0x514dcf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xd4], edx
jmp 0x514dd9
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00527400
add esp, 8
test eax, eax
je 0x514dfb
jmp 0x51675c
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00501400
add esp, 0xc
test eax, eax
je 0x514e1b
jmp 0x51675c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x514e62
mov dword [ebp - 0xd8], 0
jmp 0x514e74
mov eax, dword [ebp - 4]
push eax
call fcn.0050c4e0
add esp, 4
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
jmp 0x514ea1
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], 0
je 0x514ec9
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x3c]
jne 0x514eb8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
jmp 0x514e8f
cmp dword [ebp + 0x24], 0
je 0x514ef0
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x90]
mov dword [edx + 0x28], eax
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x34], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
add eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax*4 + 6]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004f0400
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x514f31
jmp 0x51675c
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
lea edx, [ecx + eax*4 + 4]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0057ccd0
add esp, 0xc
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov byte [edx + 1], 0
mov dword [ebp - 8], 0
jmp 0x514f7f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x514f9a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x514f76
push 0x20
push 0
lea edx, [ebp - 0x178]
push edx
call fcn.0057ccd0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x160], 0x200
mov eax, dword [ebp + 8]
push eax
call fcn.004fe6e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x514fec
jmp 0x51675c
mov byte [ebp - 0x19], 0
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0xe], cl
mov dword [ebp - 8], 0
jmp 0x515008
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jge 0x51525f
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
call fcn.005139e0
add esp, 4
mov byte [ebp - 0x6d], al
cmp dword [ebp - 0x44], 0
jne 0x515057
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
push ecx
lea edx, [ebp - 0x178]
push edx
call fcn.0050da60
add esp, 8
test eax, eax
je 0x515057
jmp 0x51675c
mov dword [ebp - 0x24], 0
jmp 0x515069
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 0x24], edx
jge 0x51515f
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, byte [edx + eax + 0xa]
movzx ecx, byte [ebp - 0x6d]
cmp eax, ecx
jne 0x51515a
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx]
push edx
call fcn.00513970
add esp, 8
test eax, eax
jne 0x51515a
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 0x24], ecx
jne 0x5150ee
mov byte [ebp - 0xe], 1
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc8], edx
jmp 0x51514c
cmp dword [ebp - 0x2c], 0
je 0x515110
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 1
je 0x515110
mov byte [ebp - 0x19], 1
jmp 0x51514c
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x60
je 0x51514c
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx]
push edx
push str.cannot_UPDATE_generated_column___s_
mov eax, dword [ebp + 8]
push eax
call fcn.004f2f90
add esp, 0xc
jmp 0x51675c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
jmp 0x51515f
jmp 0x515060
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 0x24], edx
jl 0x5151d9
cmp dword [ebp - 0x2c], 0
jne 0x5151b0
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
call fcn.00501470
add esp, 4
test eax, eax
je 0x5151b0
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 0xe], 1
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc8], eax
jmp 0x5151d9
imul ecx, dword [ebp - 8], 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx + 0xc]
push eax
push str.no_such_column:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f2f90
add esp, 0xc
mov edx, dword [ebp + 8]
mov byte [edx + 0x11], 1
jmp 0x51675c
cmp dword [ebp - 0x24], 0
jge 0x5151eb
mov dword [ebp - 0xdc], str.ROWID
jmp 0x515200
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xf4]
shl ecx, 4
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 0x17
mov edx, dword [ebp + 8]
push edx
call fcn.004e66d0
add esp, 0x14
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 1
jne 0x515244
jmp 0x51675c
cmp dword [ebp - 0xe0], 2
jne 0x51525a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x514fff
movzx edx, byte [ebp - 0xe]
movzx eax, byte [ebp - 0x19]
add edx, eax
mov byte [ebp - 0xd], dl
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x515321
mov dword [ebp - 0xe4], 0
mov dword [ebp - 8], 0
jmp 0x515297
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x515314
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jl 0x5152b1
jmp 0x51528e
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x60
jne 0x5152c9
jmp 0x51528e
movzx eax, byte [ebp - 0xe]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
add edx, dword [eax + 4]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004ed6e0
add esp, 8
push eax
call fcn.004f8790
add esp, 0xc
test eax, eax
je 0x51530f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov dword [eax + edx*4], 0x1869f
mov dword [ebp - 0xe4], 1
jmp 0x51528e
cmp dword [ebp - 0xe4], 0
jne 0x51527b
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x2b]
cmp edx, 1
jne 0x515342
or eax, 0xffffffff
mov dword [ebp - 0x13c], 0xffffffff
mov dword [ebp - 0x138], eax
jmp 0x51534d
xorps xmm0, xmm0
movlpd qword [ebp - 0x13c], xmm0
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x138]
mov dword [eax + edx + 0x40], ecx
mov dword [eax + edx + 0x44], esi
movzx edx, byte [ebp - 0xd]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fb010
add esp, 0x10
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x18], 5
jne 0x515398
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
jmp 0x5153bc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x3c], 0
je 0x5154fd
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x5153f5
cmp dword [ebp - 0x48], 1
jg 0x5153f5
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
je 0x5153f5
movzx ecx, byte [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004cc2e0
add esp, 0xc
test eax, eax
je 0x515434
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 0x34]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x2c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
jmp 0x5154d6
mov dword [ebp - 0x9c], 0
mov dword [ebp - 8], 0
jmp 0x515450
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x32]
cmp dword [ebp - 8], eax
jge 0x5154d6
movzx ecx, byte [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004cbfe0
add esp, 0x10
test eax, eax
je 0x5154d1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xec]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x34]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
cmp dword [ebp + 0x18], 0xb
jne 0x5154cf
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x36]
cmp eax, 5
jne 0x5154cf
mov dword [ebp - 0x88], 1
jmp 0x5154d6
jmp 0x515447
cmp dword [ebp - 0x9c], 0
jne 0x5154e9
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x74]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x9c]
mov dword [eax + edx*4], ecx
jmp 0x5153aa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + eax*4], edx
cmp dword [ebp - 0x88], 0
je 0x515545
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0057ccd0
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x51555c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00518210
add esp, 4
cmp dword [ebp - 0x64], 0
jne 0x515574
cmp dword [ebp - 0x48], 0
jne 0x515574
mov dword [ebp - 0xf8], 0
jmp 0x51557e
mov dword [ebp - 0xf8], 1
mov edx, dword [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e73c0
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
je 0x515671
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xfc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x5155f5
cmp dword [ebp - 0x64], 0
jne 0x5155f5
cmp dword [ebp - 0x48], 0
je 0x515617
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x51562b
cmp dword [ebp - 0x64], 0
jne 0x51562b
cmp dword [ebp - 0x48], 0
je 0x51564f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x100]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
cmp dword [ebp - 0x5c], 0
je 0x515690
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e67c0
add esp, 0xc
cmp dword [ebp - 0x44], 0
jne 0x5156ca
cmp dword [ebp - 0x5c], 0
je 0x5156ca
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00502f90
add esp, 0x18
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp - 0x44], 0
jne 0x5156ec
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.0050da60
add esp, 8
test eax, eax
je 0x5156ec
jmp 0x51675c
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
jne 0x515728
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00533ad0
add esp, 0x20
jmp 0x51675c
mov eax, dword [ebp + 8]
push eax
call fcn.005233d0
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x20]
and eax, 0
mov ecx, dword [edx + 0x24]
and ecx, 1
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x150]
or edx, dword [ebp - 0x14c]
je 0x5157cc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
jne 0x5157cc
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x5157cc
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x95]
test ecx, ecx
jne 0x5157cc
cmp dword [ebp + 0x24], 0
jne 0x5157cc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x104]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0
push 0x47
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
cmp dword [ebp - 0x44], 0
jne 0x515836
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
and ecx, 0x80
jne 0x515836
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xa0]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0xa0]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
push 0x74
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517970
add esp, 0x14
mov dword [ebp - 0x80], eax
jmp 0x5159ca
cmp dword [ebp - 0x2c], 0
je 0x51584b
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx + 0x32]
mov dword [ebp - 0x108], edx
jmp 0x515855
mov dword [ebp - 0x108], 0
mov ax, word [ebp - 0x108]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0x50], edx
movsx eax, word [ebp - 0x18]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10c]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 0x24], 0
jne 0x5159ca
cmp dword [ebp - 0x5c], 0
je 0x5158ce
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x110], eax
jmp 0x5158d8
mov dword [ebp - 0x110], 0
movsx ecx, word [ebp - 0x18]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
cmp dword [ebp - 0x2c], 0
je 0x515929
movsx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x50]
lea eax, [edx + ecx - 1]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517970
add esp, 0x14
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x74
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x2c], 0
je 0x515990
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005019d0
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x515990
mov edx, dword [ebp - 0xb8]
mov ax, word [ebp - 0x114]
mov word [edx + 8], ax
push 0xfffffffffffffff7
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517d20
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x5159ca
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00533750
add esp, 0x20
cmp dword [ebp - 0x5c], 0
je 0x5159ca
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x44], 0
je 0x5159f8
mov eax, dword [ebp + 8]
push eax
call fcn.005035c0
add esp, 4
mov dword [ebp - 0x40], 0
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], edx
jmp 0x515c8c
cmp dword [ebp + 0x24], 0
je 0x515a31
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x40], 1
push 0x10
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f6e90
add esp, 0x10
mov dword [ebp - 0xac], 0
jmp 0x515b30
mov dword [ebp - 0xbc], 4
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
jne 0x515a72
cmp dword [ebp - 0x64], 0
jne 0x515a72
cmp dword [ebp - 0x48], 0
jne 0x515a72
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x515a72
cmp dword [ebp - 0x88], 0
jne 0x515a72
mov eax, dword [ebp - 0xbc]
or eax, 8
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x98]
push ecx
movzx edx, word [ebp - 0xbc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052a080
add esp, 0x20
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x515aa9
jmp 0x51675c
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.0052e590
add esp, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x78]
push edx
call fcn.0052e840
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x40], 1
je 0x515b30
mov eax, dword [ebp + 8]
push eax
call fcn.005035c0
add esp, 4
cmp dword [ebp - 0x40], 2
jne 0x515b30
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0xb4]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
jl 0x515b30
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x14]
je 0x515b30
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x515b30
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x515bc5
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x86
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
cmp dword [ebp - 0x40], 0
jne 0x515baa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x118]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x7f
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
jmp 0x515bc0
cmp dword [ebp - 0x80], 0
je 0x515bc0
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517fd0
add esp, 8
jmp 0x515c8c
mov dword [ebp - 8], 0
jmp 0x515bd7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movsx edx, word [ebp - 0x18]
cmp dword [ebp - 8], edx
jge 0x515c0b
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
movsx ecx, word [edx + eax*2]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f4280
add esp, 0x14
jmp 0x515bce
cmp dword [ebp - 0x40], 0
je 0x515c39
cmp dword [ebp - 0x80], 0
je 0x515c27
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517fd0
add esp, 8
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], edx
jmp 0x515c8c
movsx eax, word [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004fee30
add esp, 8
push eax
mov eax, dword [ebp - 0x4c]
push eax
movsx ecx, word [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0x60
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517a10
add esp, 0x1c
movsx ecx, word [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x89
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517ac0
add esp, 0x18
cmp dword [ebp + 0x24], 0
jne 0x515fd8
cmp dword [ebp - 0x44], 0
jne 0x515cae
cmp dword [ebp - 0x40], 2
je 0x515cae
mov eax, dword [ebp - 0x78]
push eax
call fcn.0052d3f0
add esp, 4
cmp dword [ebp - 0x5c], 0
jne 0x515db2
mov dword [ebp - 0xc4], 0
cmp dword [ebp - 0x40], 0
je 0x515d24
mov ecx, 4
imul edx, ecx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x515cf6
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0xb4]
sub edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x68]
mov byte [eax + edx], 0
mov ecx, 4
shl ecx, 0
cmp dword [ebp + ecx - 0xb4], 0
jl 0x515d24
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0xb4]
sub eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x68]
mov byte [ecx + eax], 0
cmp dword [ebp - 0x40], 2
jne 0x515d73
mov edx, 4
shl edx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x515d48
mov dword [ebp - 0x11c], 1
jmp 0x515d52
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x11c]
test eax, eax
jle 0x515d73
push 0x11
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517910
add esp, 8
mov dword [ebp - 0xc4], eax
push 0
push 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x90]
push eax
push 0
push 0x70
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00503b90
add esp, 0x20
cmp dword [ebp - 0xc4], 0
je 0x515db2
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00522ff0
add esp, 8
cmp dword [ebp - 0x40], 0
je 0x515e52
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0xb4]
cmp ecx, dword [ebp - 0x14]
je 0x515e05
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0xb4]
cmp eax, dword [ebp - 0x14]
je 0x515e05
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517ac0
add esp, 0x18
cmp dword [ebp - 0x40], 1
je 0x515e1a
mov eax, dword [ebp + 8]
push eax
call fcn.005233d0
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
je 0x515e2b
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x120], ecx
jmp 0x515e34
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
push 0x32
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
jmp 0x515fd8
cmp dword [ebp - 0x2c], 0
jne 0x515e62
cmp dword [ebp - 0x44], 0
je 0x515f7a
mov eax, dword [ebp + 8]
push eax
call fcn.005233d0
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x26
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517950
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005182f0
add esp, 4
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0x44], 0
je 0x515f43
cmp dword [ebp - 0x5c], 0
jne 0x515f41
cmp dword [ebp - 0x2c], 0
je 0x515f0e
mov dword [ebp - 8], 0
jmp 0x515ec5
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movsx eax, word [ebp - 0x18]
cmp dword [ebp - 8], eax
jge 0x515eed
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x5d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
jmp 0x515ebc
movsx edx, word [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x1e
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517ac0
add esp, 0x18
jmp 0x515f41
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x86
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517950
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
jmp 0x515f78
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x85
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517950
add esp, 0x10
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517ac0
add esp, 0x18
jmp 0x515fd8
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x26
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.005233d0
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x86
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517950
add esp, 0x10
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x51602e
cmp dword [ebp - 0x44], 0
jne 0x515fff
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f3e70
add esp, 0xc
jmp 0x51601c
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x5d
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517970
add esp, 0x14
mov ecx, dword [ebp - 0x54]
push ecx
push 0xf
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517930
add esp, 0xc
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x516046
cmp dword [ebp - 0x48], 0
jne 0x516046
cmp dword [ebp - 0x64], 0
je 0x516181
cmp dword [ebp - 0x48], 0
je 0x516064
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fae80
add esp, 8
mov dword [ebp - 0x124], eax
jmp 0x51606e
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
push 3
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00514130
add esp, 0x1c
or eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 8], 0
jmp 0x5160b8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x51615d
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
mov dword [ebp - 0x148], eax
movzx ecx, word [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00513dd0
add esp, 8
cwde
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xa8], 0xffffffff
je 0x516126
cmp dword [ebp - 8], 0x20
jge 0x51611b
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0xa8]
jne 0x516126
mov eax, dword [ebp - 0x148]
and eax, 1
je 0x516144
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f4280
add esp, 0x14
jmp 0x516158
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517950
add esp, 0x10
jmp 0x5160af
movzx edx, byte [ebp - 0xe]
test edx, edx
jne 0x516181
cmp dword [ebp - 0x2c], 0
jne 0x516181
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x4f
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00514130
add esp, 0x1c
mov dword [ebp - 0x144], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x5161cb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 8], eax
jge 0x516321
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x20]
cmp dword [ebp - 8], edx
jne 0x516200
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517950
add esp, 0x10
jmp 0x51631c
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x60
je 0x51623a
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 0x20
je 0x516235
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x51631c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jl 0x5162bd
cmp dword [ebp - 0x44], 0
je 0x51629f
cmp dword [ebp - 0x5c], 0
je 0x516267
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x12c], eax
jmp 0x516271
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x140]
add ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x5d
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517970
add esp, 0x14
jmp 0x5162bb
mov ecx, dword [ebp - 0x28]
push ecx
imul edx, dword [ebp - 0x24], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f3e70
add esp, 0xc
jmp 0x51631c
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x5162e0
cmp dword [ebp - 8], 0x1f
jg 0x5162e0
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0x144]
je 0x516308
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f4280
add esp, 0x14
mov dword [ebp - 0xac], 0
jmp 0x51631c
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0x4a
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517950
add esp, 0x10
jmp 0x5161b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x516343
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004edfc0
add esp, 0xc
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x5164a3
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00513b80
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
push 0x81
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ece90
add esp, 0x24
cmp dword [ebp - 0x5c], 0
jne 0x5164a3
cmp dword [ebp - 0x2c], 0
je 0x5163c7
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x1e
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517ac0
add esp, 0x18
jmp 0x5163e1
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517970
add esp, 0x14
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x516405
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 8], eax
jge 0x516481
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x60
je 0x516448
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x20
je 0x516446
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
jmp 0x51647c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx*4], 0
jge 0x51647c
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 8], ecx
je 0x51647c
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004f4280
add esp, 0x14
jmp 0x5163f3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x5164a3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004edfc0
add esp, 0xc
cmp dword [ebp - 0x5c], 0
jne 0x516665
push 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x38]
push edx
movzx eax, byte [ebp + 0x18]
push eax
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fb540
add esp, 0x34
cmp dword [ebp - 0x88], 0
jne 0x516500
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x516543
cmp dword [ebp - 0x2c], 0
je 0x516529
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517ac0
add esp, 0x18
jmp 0x516543
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x21
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517970
add esp, 0x14
cmp dword [ebp - 0x48], 0
je 0x516568
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fa260
add esp, 0x18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fd0a0
add esp, 0x18
cmp dword [ebp - 0xac], 0
je 0x5165a7
mov edx, dword [ebp - 0x14]
push edx
push 0x8e
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517930
add esp, 0xc
cmp dword [ebp - 0x48], 1
jg 0x5165b5
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x5165cc
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x81
mov eax, dword [ebp - 0xc]
push eax
call fcn.00517950
add esp, 0x10
cmp dword [ebp - 0x48], 0
je 0x5165f1
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fa260
add esp, 0x18
cmp dword [ebp - 0x40], 2
jne 0x516603
mov dword [ebp - 0x130], 2
jmp 0x51660d
mov dword [ebp - 0x130], 0
push 0
push 0
mov eax, dword [ebp - 0x130]
or eax, 4
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004eddc0
add esp, 0x24
cmp dword [ebp - 0x48], 0
je 0x516665
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004fa1a0
add esp, 0x18
cmp dword [ebp - 0x8c], 0
je 0x516685
push 1
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x55
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
push 2
mov ecx, dword [ebp + 0x10]
push ecx
push 0x81
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ece90
add esp, 0x24
cmp dword [ebp - 0x40], 1
jne 0x5166b8
jmp 0x516705
cmp dword [ebp - 0x40], 2
jne 0x5166dc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00525ef0
add esp, 8
mov eax, dword [ebp - 0x78]
push eax
call fcn.0052d3f0
add esp, 4
jmp 0x516705
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00525ef0
add esp, 8
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 5
mov edx, dword [ebp - 0xc]
push edx
call fcn.00517950
add esp, 0x10
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00525ef0
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x51673b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x51673b
cmp dword [ebp + 0x24], 0
jne 0x51673b
mov edx, dword [ebp + 8]
push edx
call fcn.004e6ca0
add esp, 4
cmp dword [ebp - 0x8c], 0
je 0x51675c
push str.rows_updated
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ec7d0
add esp, 0xc
lea edx, [ebp - 0x158]
push edx
call fcn.004e6790
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004f0290
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.005125c0
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004f80a0
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004f6ae0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret