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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x523d14
jmp 0x5258dc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00503920
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x523d32
jmp 0x5258dc
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00515040
add esp, 8
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x81
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00522830
add esp, 0x14
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x2b]
xor edx, edx
cmp ecx, 2
sete dl
mov dword [ebp - 0xac], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jle 0x523d9d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x120], edx
jmp 0x523da7
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fea90
add esp, 8
test eax, eax
je 0x523dc9
jmp 0x5258dc
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00503aa0
add esp, 0xc
test eax, eax
je 0x523de9
jmp 0x5258dc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xcc], 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 - 0xe0]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x523e39
mov dword [ebp - 0x124], 0
jmp 0x523e4b
mov eax, dword [ebp - 0x64]
push eax
call fcn.004fb710
add esp, 4
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xd8], 0
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 8]
mov dword [ebp - 0xd0], eax
jmp 0x523e8d
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd8]
add eax, 1
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd0], 0
je 0x523ec1
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0xd0]
jne 0x523eb0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xe0], 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 0x523e6f
cmp dword [ebp + 0x24], 0
je 0x523eeb
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xcc]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xe0]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
add ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd8]
lea eax, [edx + ecx*4 + 6]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.004a4cd0
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x523f2c
jmp 0x5258dc
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
mov edx, dword [ebp - 0x60]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x44]
lea eax, [edx + ecx*4 + 4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0xd8]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00562540
add esp, 0xc
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0xd8]
mov byte [eax + 1], 0
mov dword [ebp - 0x3c], 0
jmp 0x523f83
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0x3c], eax
jge 0x523f9e
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
mov dword [edx + ecx*4], 0xffffffff
jmp 0x523f7a
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], 0x200
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518c00
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x523ff1
jmp 0x5258dc
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xbd], dl
mov dword [ebp - 0x3c], 0
jmp 0x524010
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx]
jge 0x5242b7
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
call fcn.004a9770
add esp, 4
mov byte [ebp - 0xf1], al
cmp dword [ebp - 0x54], 0
jne 0x524066
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 8]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.004e9c10
add esp, 8
test eax, eax
je 0x524066
jmp 0x5258dc
mov dword [ebp - 0xf0], 0
jmp 0x524081
mov ecx, dword [ebp - 0xf0]
add ecx, 1
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0xf0], eax
jge 0x52419c
mov ecx, dword [ebp - 0xf0]
shl ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
movzx ecx, byte [eax + ecx + 0xa]
movzx edx, byte [ebp - 0xf1]
cmp ecx, edx
jne 0x524197
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp - 0xf0]
shl eax, 4
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax]
push eax
call fcn.004a9640
add esp, 8
test eax, eax
jne 0x524197
mov ecx, dword [ebp - 0x64]
movsx edx, word [ecx + 0x20]
cmp dword [ebp - 0xf0], edx
jne 0x52411c
mov byte [ebp - 0xbd], 1
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x90], eax
jmp 0x524186
cmp dword [ebp - 0xa8], 0
je 0x524144
mov ecx, dword [ebp - 0xf0]
shl ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 1
je 0x524144
mov byte [ebp - 0xd], 1
jmp 0x524186
mov edx, dword [ebp - 0xf0]
shl edx, 4
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x60
je 0x524186
mov eax, dword [ebp - 0xf0]
shl eax, 4
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax]
push eax
push str.cannot_UPDATE_generated_column___s_
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a9320
add esp, 0xc
jmp 0x5258dc
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + edx*4], ecx
jmp 0x52419c
jmp 0x524072
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0xf0], eax
jl 0x524228
cmp dword [ebp - 0xa8], 0
jne 0x5241fd
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.004ed720
add esp, 4
test eax, eax
je 0x5241fd
mov dword [ebp - 0xf0], 0xffffffff
mov byte [ebp - 0xbd], 1
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x90], ecx
jmp 0x524228
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
push str.no_such_column:__s
mov edx, dword [ebp + 8]
push edx
call fcn.004a9320
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x11], 1
jmp 0x5258dc
cmp dword [ebp - 0xf0], 0
jge 0x52423d
mov dword [ebp - 0x128], str.ROWID
jmp 0x524255
mov ecx, dword [ebp - 0xf0]
shl ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0xec]
shl edx, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
push 0x17
mov eax, dword [ebp + 8]
push eax
call fcn.004f9ca0
add esp, 0x14
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 1
jne 0x524299
jmp 0x5258dc
cmp dword [ebp - 0xf8], 2
jne 0x5242b2
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x60]
mov dword [edx + ecx*4], 0xffffffff
jmp 0x524007
movzx eax, byte [ebp - 0xbd]
movzx ecx, byte [ebp - 0xd]
add eax, ecx
mov byte [ebp - 0x9d], al
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x1c]
and eax, 0x60
je 0x524382
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x3c], 0
jmp 0x5242f5
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0x3c], eax
jge 0x524375
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
cmp dword [edx + ecx*4], 0
jl 0x52430f
jmp 0x5242ec
mov eax, dword [ebp - 0x3c]
shl eax, 4
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 0x60
jne 0x524327
jmp 0x5242ec
movzx ecx, byte [ebp - 0xbd]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x3c]
shl eax, 4
mov ecx, dword [ebp - 0x64]
add eax, dword [ecx + 4]
push eax
mov edx, dword [ebp - 0x64]
push edx
call fcn.004faf30
add esp, 8
push eax
call fcn.0050c110
add esp, 0xc
test eax, eax
je 0x524370
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + eax*4], 0x1869f
mov dword [ebp - 0xfc], 1
jmp 0x5242ec
cmp dword [ebp - 0xfc], 0
jne 0x5242d9
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
jne 0x5243a4
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x12c], 0xffffffff
jmp 0x5243b8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x130]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp - 0x12c]
mov dword [ecx + 0x44], eax
movzx ecx, byte [ebp - 0x9d]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00509600
add esp, 0x10
mov dword [ebp - 0xbc], eax
cmp dword [ebp + 0x18], 5
jne 0x5243ff
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 8]
mov dword [ebp - 0xd0], eax
jmp 0x52442c
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0xd0], 0
je 0x52457c
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
jne 0x52447a
cmp dword [ebp - 0xbc], 1
jg 0x52447a
mov edx, dword [ebp - 0xd0]
cmp edx, dword [ebp - 0xa8]
je 0x52447a
movzx eax, byte [ebp - 0xbd]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00523920
add esp, 0xc
test eax, eax
je 0x5244b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0xd0]
movzx eax, word [edx + 0x34]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
jmp 0x524555
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x3c], 0
jmp 0x5244cc
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xd0]
movzx edx, word [ecx + 0x32]
cmp dword [ebp - 0x3c], edx
jge 0x524555
movzx eax, byte [ebp - 0xbd]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.005238c0
add esp, 0x10
test eax, eax
je 0x524550
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0xd0]
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
cmp dword [ebp + 0x18], 0xb
jne 0x52454e
mov ecx, dword [ebp - 0xd0]
movzx edx, byte [ecx + 0x36]
cmp edx, 5
jne 0x52454e
mov dword [ebp - 0x94], 1
jmp 0x524555
jmp 0x5244c3
cmp dword [ebp - 0x100], 0
jne 0x524568
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x48]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x100]
mov dword [edx + ecx*4], eax
jmp 0x524414
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov dword [edx + ecx*4], eax
cmp dword [ebp - 0x94], 0
je 0x5245bb
mov ecx, dword [ebp - 0xd8]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00562540
add esp, 0xc
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
jne 0x5245d2
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d5240
add esp, 4
cmp dword [ebp - 0xb4], 0
jne 0x5245f0
cmp dword [ebp - 0xbc], 0
jne 0x5245f0
mov dword [ebp - 0x134], 0
jmp 0x5245fa
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00502470
add esp, 0xc
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 1
je 0x5246db
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x524668
cmp dword [ebp - 0xb4], 0
jne 0x524668
cmp dword [ebp - 0xbc], 0
je 0x524687
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
movzx eax, byte [ebp - 0x9d]
test eax, eax
jne 0x5246a4
cmp dword [ebp - 0xb4], 0
jne 0x5246a4
cmp dword [ebp - 0xbc], 0
je 0x5246bc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
cmp dword [ebp - 0xac], 0
je 0x5246fa
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f9d60
add esp, 0xc
cmp dword [ebp - 0x54], 0
jne 0x52473a
cmp dword [ebp - 0xac], 0
je 0x52473a
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00503b10
add esp, 0x18
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp - 0x54], 0
jne 0x52475c
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.004e9c10
add esp, 8
test eax, eax
je 0x52475c
jmp 0x5258dc
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 1
jne 0x524798
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00525930
add esp, 0x20
jmp 0x5258dc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d03c0
add esp, 4
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
and ecx, 0
mov edx, dword [eax + 0x24]
and edx, 1
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x13c]
or eax, dword [ebp - 0x138]
je 0x524839
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x524839
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x524839
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x95]
test edx, edx
jne 0x524839
cmp dword [ebp + 0x24], 0
jne 0x524839
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
push edx
push 0
push 0x47
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
cmp dword [ebp - 0x54], 0
jne 0x5248a3
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x5248a3
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0x4b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfdf0
add esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x4c]
push edx
push 0
mov eax, dword [ebp - 0x9c]
push eax
push 0x76
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfdf0
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x524a5e
cmp dword [ebp - 0xa8], 0
je 0x5248be
mov edx, dword [ebp - 0xa8]
movzx eax, word [edx + 0x32]
mov dword [ebp - 0x140], eax
jmp 0x5248c8
mov dword [ebp - 0x140], 0
mov cx, word [ebp - 0x140]
mov word [ebp - 0x8c], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x58], eax
movsx ecx, word [ebp - 0x8c]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x2c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 0x54]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 8], edx
cmp dword [ebp + 0x24], 0
jne 0x524a5e
cmp dword [ebp - 0xac], 0
je 0x52493e
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x144], ecx
jmp 0x524948
mov dword [ebp - 0x144], 0
movsx edx, word [ebp - 0x8c]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x144]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
cmp dword [ebp - 0xa8], 0
je 0x5249a5
movsx edx, word [ebp - 0x8c]
mov eax, dword [ebp - 0x58]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [ebp - 0x58]
push edx
push 0
push 0x4b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0x76
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0xa8], 0
je 0x524a15
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00502ac0
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x524a15
mov eax, dword [ebp - 0x108]
mov cx, word [ebp - 0x104]
mov word [eax + 8], cx
push 0xfffffffffffffff8
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d0de0
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x524a5e
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 + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00523990
add esp, 0x20
cmp dword [ebp - 0xac], 0
je 0x524a5e
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0x54], 0
je 0x524a92
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024d0
add esp, 4
mov dword [ebp - 0xc8], 0
movsx edx, word [ebp - 0x8c]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
jmp 0x524d44
cmp dword [ebp + 0x24], 0
je 0x524ad1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc8], 1
push 0x10
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f1a70
add esp, 0x10
mov dword [ebp - 0xe8], 0
jmp 0x524bcd
mov dword [ebp - 0x30], 4
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x524b12
cmp dword [ebp - 0xb4], 0
jne 0x524b12
cmp dword [ebp - 0xbc], 0
jne 0x524b12
movzx eax, byte [ebp - 0x9d]
test eax, eax
jne 0x524b12
cmp dword [ebp - 0x94], 0
jne 0x524b12
mov ecx, dword [ebp - 0x30]
or ecx, 8
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x88]
push edx
movzx eax, word [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005385b0
add esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x524b46
jmp 0x5258dc
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00530d10
add esp, 8
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00530d30
add esp, 4
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xc8], 1
je 0x524bcd
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024d0
add esp, 4
cmp dword [ebp - 0xc8], 2
jne 0x524bcd
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
jl 0x524bcd
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0xe0]
je 0x524bcd
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x524bcd
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x524c5f
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x87
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
cmp dword [ebp - 0xc8], 0
jne 0x524c44
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x2c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0x80
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
jmp 0x524c5a
cmp dword [ebp - 0x24], 0
je 0x524c5a
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0ba0
add esp, 8
jmp 0x524d44
mov dword [ebp - 0x3c], 0
jmp 0x524c71
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
movsx ecx, word [ebp - 0x8c]
cmp dword [ebp - 0x3c], ecx
jge 0x524cae
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
movsx eax, word [ecx + edx*2]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ef320
add esp, 0x14
jmp 0x524c68
cmp dword [ebp - 0xc8], 0
je 0x524ce2
cmp dword [ebp - 0x24], 0
je 0x524ccd
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0ba0
add esp, 8
movsx eax, word [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 8], ecx
jmp 0x524d44
movsx edx, word [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050a0e0
add esp, 8
push eax
mov edx, dword [ebp - 8]
push edx
movsx eax, word [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0x61
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0020
add esp, 0x1c
movsx eax, word [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x9c]
push eax
push 0x8a
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d0330
add esp, 0x18
cmp dword [ebp + 0x24], 0
jne 0x525094
cmp dword [ebp - 0x54], 0
jne 0x524d69
cmp dword [ebp - 0xc8], 2
je 0x524d69
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005393c0
add esp, 4
cmp dword [ebp - 0xac], 0
jne 0x524e26
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0xc8], 0
je 0x524db5
cmp dword [ebp - 0x2c], 0
jl 0x524d9f
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + eax], 0
cmp dword [ebp - 0x28], 0
jl 0x524db5
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x5c]
mov byte [eax + edx], 0
cmp dword [ebp - 0xc8], 2
jne 0x524de7
xor ecx, ecx
cmp dword [ebp - 0x28], 0
setge cl
mov edx, dword [ebp - 0xd8]
sub edx, ecx
test edx, edx
jle 0x524de7
push 0xe
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfe90
add esp, 8
mov dword [ebp - 0x110], eax
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
push 0
push 0x71
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050dac0
add esp, 0x20
cmp dword [ebp - 0x110], 0
je 0x524e26
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d0920
add esp, 8
cmp dword [ebp - 0xc8], 0
je 0x524ec9
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0xe0]
je 0x524e70
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0xe0]
je 0x524e70
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xe0]
push eax
push 0x1b
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d0330
add esp, 0x18
cmp dword [ebp - 0xc8], 1
je 0x524e8b
mov edx, dword [ebp + 8]
push edx
call fcn.004d03c0
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xa8], 0
je 0x524e9f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x148], eax
jmp 0x524ea8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0x148]
push eax
push 0x32
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfed0
add esp, 0x10
jmp 0x525094
cmp dword [ebp - 0xa8], 0
jne 0x524edc
cmp dword [ebp - 0x54], 0
je 0x525024
mov edx, dword [ebp + 8]
push edx
call fcn.004d03c0
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x23
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d06f0
add esp, 4
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x54], 0
je 0x524fe4
cmp dword [ebp - 0xac], 0
jne 0x524fe2
cmp dword [ebp - 0xa8], 0
je 0x524fa6
mov dword [ebp - 0x3c], 0
jmp 0x524f4e
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
movsx edx, word [ebp - 0x8c]
cmp dword [ebp - 0x3c], edx
jge 0x524f7c
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0x5e
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
jmp 0x524f45
movsx ecx, word [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x1b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0330
add esp, 0x18
jmp 0x524fe2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x87
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
push 0x1e
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
jmp 0x525022
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0x86
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
push 0x1b
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d0330
add esp, 0x18
jmp 0x525094
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0x9c]
push eax
push 0x23
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfed0
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.004d03c0
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x87
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
push 0x1e
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
movzx ecx, byte [ebp - 0xbd]
test ecx, ecx
je 0x5250f0
cmp dword [ebp - 0x54], 0
jne 0x5250be
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f1170
add esp, 0xc
jmp 0x5250de
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x5e
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfdf0
add esp, 0x14
mov eax, dword [ebp - 0x40]
push eax
push 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfeb0
add esp, 0xc
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x52510e
cmp dword [ebp - 0xbc], 0
jne 0x52510e
cmp dword [ebp - 0xb4], 0
je 0x525260
cmp dword [ebp - 0xbc], 0
je 0x52512f
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00509490
add esp, 8
mov dword [ebp - 0x14c], eax
jmp 0x525139
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00523730
add esp, 0x1c
or eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x3c], 0
jmp 0x525186
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
cmp dword [ebp - 0x3c], ecx
jge 0x525236
mov edx, dword [ebp - 0x3c]
shl edx, 4
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
mov dword [ebp - 0x118], edx
movzx eax, word [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004fb800
add esp, 8
movsx edx, ax
add edx, dword [ebp - 4]
mov dword [ebp - 0xc4], edx
cmp dword [ebp - 0x114], 0xffffffff
je 0x5251f6
cmp dword [ebp - 0x3c], 0x20
jge 0x5251eb
mov eax, 1
mov ecx, dword [ebp - 0x3c]
shl eax, cl
and eax, dword [ebp - 0x114]
jne 0x5251f6
mov ecx, dword [ebp - 0x118]
and ecx, 1
je 0x52521a
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ef320
add esp, 0x14
jmp 0x525231
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
push 0x4b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
jmp 0x52517d
movzx eax, byte [ebp - 0xbd]
test eax, eax
jne 0x525260
cmp dword [ebp - 0xa8], 0
jne 0x525260
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x50
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 1
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00523730
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc4], eax
jmp 0x5252b0
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0xc4]
add edx, 1
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
cmp dword [ebp - 0x3c], ecx
jge 0x525436
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x20]
cmp dword [ebp - 0x3c], eax
jne 0x5252e8
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
push 0x4b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
jmp 0x525431
mov eax, dword [ebp - 0x3c]
shl eax, 4
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 0x60
je 0x525328
mov ecx, dword [ebp - 0x3c]
shl ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x20
je 0x525323
mov edx, dword [ebp - 0xc4]
sub edx, 1
mov dword [ebp - 0xc4], edx
jmp 0x525431
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xf0], edx
cmp dword [ebp - 0xf0], 0
jl 0x5253cc
cmp dword [ebp - 0x54], 0
je 0x5253a6
cmp dword [ebp - 0xac], 0
je 0x525362
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x150], ecx
jmp 0x52536f
movsx edx, word [ebp - 0x8c]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x11c]
add edx, dword [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0x9c]
push eax
push 0x5e
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfdf0
add esp, 0x14
jmp 0x5253ca
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xf0]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f1170
add esp, 0xc
jmp 0x525431
mov ecx, dword [ebp - 0xb0]
and ecx, 1
je 0x5253ec
cmp dword [ebp - 0x3c], 0x1f
jg 0x5253ec
mov edx, 1
mov ecx, dword [ebp - 0x3c]
shl edx, cl
and edx, dword [ebp - 0xc]
je 0x52541a
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004ef320
add esp, 0x14
mov dword [ebp - 0xe8], 0
jmp 0x525431
mov edx, dword [ebp - 0xc4]
push edx
push 0
push 0x4b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
jmp 0x525298
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x525455
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050a560
add esp, 0xc
mov eax, dword [ebp - 0xb0]
and eax, 1
je 0x5255d9
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050a200
add esp, 0xc
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
push 0x81
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00523660
add esp, 0x24
cmp dword [ebp - 0xac], 0
jne 0x5255d9
cmp dword [ebp - 0xa8], 0
je 0x5254e8
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
push 0x1b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d0330
add esp, 0x18
jmp 0x525508
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
push 0x1e
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004cfdf0
add esp, 0x14
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xc4], edx
jmp 0x525532
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0x3c], eax
jge 0x5255ba
mov ecx, dword [ebp - 0x3c]
shl ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x60
je 0x52557b
mov edx, dword [ebp - 0x3c]
shl edx, 4
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x20
je 0x525579
mov eax, dword [ebp - 0xc4]
sub eax, 1
mov dword [ebp - 0xc4], eax
jmp 0x5255b5
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
cmp dword [edx + ecx*4], 0
jge 0x5255b5
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 0x3c], ecx
je 0x5255b5
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ef320
add esp, 0x14
jmp 0x52551a
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x5255d9
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050a560
add esp, 0xc
cmp dword [ebp - 0xac], 0
jne 0x5257cd
push 0
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
movzx eax, byte [ebp + 0x18]
push eax
movzx ecx, byte [ebp - 0x9d]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050c240
add esp, 0x34
cmp dword [ebp - 0x94], 0
jne 0x525645
movzx eax, byte [ebp - 0x9d]
test eax, eax
je 0x525697
cmp dword [ebp - 0xa8], 0
je 0x525677
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x1b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0330
add esp, 0x18
jmp 0x525697
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
push 0x1e
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfdf0
add esp, 0x14
cmp dword [ebp - 0xbc], 0
je 0x5256c2
movzx ecx, byte [ebp - 0x9d]
push ecx
mov edx, dword [ebp - 0x60]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00508ee0
add esp, 0x18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00504af0
add esp, 0x18
cmp dword [ebp - 0xe8], 0
je 0x525707
mov edx, dword [ebp - 0xe0]
push edx
push 0x8f
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfeb0
add esp, 0xc
cmp dword [ebp - 0xbc], 1
jg 0x52571b
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
je 0x525735
push 0
mov edx, dword [ebp - 0xe0]
push edx
push 0x82
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cfed0
add esp, 0x10
cmp dword [ebp - 0xbc], 0
je 0x525760
movzx ecx, byte [ebp - 0x9d]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00508ee0
add esp, 0x18
push 0
push 0
xor eax, eax
cmp dword [ebp - 0xc8], 2
setne al
sub eax, 1
and eax, 2
or eax, 4
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0050d8d0
add esp, 0x24
cmp dword [ebp - 0xbc], 0
je 0x5257cd
movzx ecx, byte [ebp - 0x9d]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00509e60
add esp, 0x18
cmp dword [ebp - 0xe4], 0
je 0x5257ed
push 1
mov ecx, dword [ebp - 0xe4]
push ecx
push 0x56
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 2
mov ecx, dword [ebp + 0x10]
push ecx
push 0x81
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00523660
add esp, 0x24
cmp dword [ebp - 0xc8], 1
jne 0x525829
jmp 0x525882
cmp dword [ebp - 0xc8], 2
jne 0x525853
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0450
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005393c0
add esp, 4
jmp 0x525882
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d0450
add esp, 8
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x26
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cfed0
add esp, 0x10
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d0450
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x5258bb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x5258bb
cmp dword [ebp + 0x24], 0
jne 0x5258bb
mov edx, dword [ebp + 8]
push edx
call fcn.0050ac60
add esp, 4
cmp dword [ebp - 0xe4], 0
je 0x5258dc
push str.rows_updated
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005039b0
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
call fcn.004f9d90
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a4990
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00501b20
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004ecd90
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004eb910
add esp, 8
mov esp, ebp
pop ebp
ret