Function at 0x529c90
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 0x529d64
jmp 0x52b92c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00509960
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x529d82
jmp 0x52b92c
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.0051b090
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.00528880
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 0x529ded
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x120], edx
jmp 0x529df7
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.00504ad0
add esp, 8
test eax, eax
je 0x529e19
jmp 0x52b92c
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00509ae0
add esp, 0xc
test eax, eax
je 0x529e39
jmp 0x52b92c
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 0x529e89
mov dword [ebp - 0x124], 0
jmp 0x529e9b
mov eax, dword [ebp - 0x64]
push eax
call fcn.00501750
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 0x529edd
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 0x529f11
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0xd0]
jne 0x529f00
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 0x529ebf
cmp dword [ebp + 0x24], 0
je 0x529f3b
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.004aad10
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x529f7c
jmp 0x52b92c
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.00568440
add esp, 0xc
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0xd8]
mov byte [eax + 1], 0
mov dword [ebp - 0x3c], 0
jmp 0x529fd3
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 0x529fee
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
mov dword [edx + ecx*4], 0xffffffff
jmp 0x529fca
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.0051ec50
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52a041
jmp 0x52b92c
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xbd], dl
mov dword [ebp - 0x3c], 0
jmp 0x52a060
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 0x52a307
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
call fcn.004af7b0
add esp, 4
mov byte [ebp - 0xf1], al
cmp dword [ebp - 0x54], 0
jne 0x52a0b6
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.004efc50
add esp, 8
test eax, eax
je 0x52a0b6
jmp 0x52b92c
mov dword [ebp - 0xf0], 0
jmp 0x52a0d1
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 0x52a1ec
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 0x52a1e7
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.004af680
add esp, 8
test eax, eax
jne 0x52a1e7
mov ecx, dword [ebp - 0x64]
movsx edx, word [ecx + 0x20]
cmp dword [ebp - 0xf0], edx
jne 0x52a16c
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 0x52a1d6
cmp dword [ebp - 0xa8], 0
je 0x52a194
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 0x52a194
mov byte [ebp - 0xd], 1
jmp 0x52a1d6
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 0x52a1d6
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.004af360
add esp, 0xc
jmp 0x52b92c
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + edx*4], ecx
jmp 0x52a1ec
jmp 0x52a0c2
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 0xf0], eax
jl 0x52a278
cmp dword [ebp - 0xa8], 0
jne 0x52a24d
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.004f3760
add esp, 4
test eax, eax
je 0x52a24d
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 0x52a278
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.004af360
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x11], 1
jmp 0x52b92c
cmp dword [ebp - 0xf0], 0
jge 0x52a28d
mov dword [ebp - 0x128], str.ROWID
jmp 0x52a2a5
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.004ffce0
add esp, 0x14
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 1
jne 0x52a2e9
jmp 0x52b92c
cmp dword [ebp - 0xf8], 2
jne 0x52a302
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x60]
mov dword [edx + ecx*4], 0xffffffff
jmp 0x52a057
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 0x52a3d2
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x3c], 0
jmp 0x52a345
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 0x52a3c5
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
cmp dword [edx + ecx*4], 0
jl 0x52a35f
jmp 0x52a33c
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 0x52a377
jmp 0x52a33c
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.00500f70
add esp, 8
push eax
call fcn.00512150
add esp, 0xc
test eax, eax
je 0x52a3c0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + eax*4], 0x1869f
mov dword [ebp - 0xfc], 1
jmp 0x52a33c
cmp dword [ebp - 0xfc], 0
jne 0x52a329
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
jne 0x52a3f4
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x12c], 0xffffffff
jmp 0x52a408
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.0050f640
add esp, 0x10
mov dword [ebp - 0xbc], eax
cmp dword [ebp + 0x18], 5
jne 0x52a44f
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 0x52a47c
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 0x52a5cc
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
jne 0x52a4ca
cmp dword [ebp - 0xbc], 1
jg 0x52a4ca
mov edx, dword [ebp - 0xd0]
cmp edx, dword [ebp - 0xa8]
je 0x52a4ca
movzx eax, byte [ebp - 0xbd]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00529970
add esp, 0xc
test eax, eax
je 0x52a500
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 0x52a5a5
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x3c], 0
jmp 0x52a51c
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 0x52a5a5
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.00529910
add esp, 0x10
test eax, eax
je 0x52a5a0
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 0x52a59e
mov ecx, dword [ebp - 0xd0]
movzx edx, byte [ecx + 0x36]
cmp edx, 5
jne 0x52a59e
mov dword [ebp - 0x94], 1
jmp 0x52a5a5
jmp 0x52a513
cmp dword [ebp - 0x100], 0
jne 0x52a5b8
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 0x52a464
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 0x52a60b
mov ecx, dword [ebp - 0xd8]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00568440
add esp, 0xc
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
jne 0x52a622
mov edx, dword [ebp - 0x18]
push edx
call fcn.004db280
add esp, 4
cmp dword [ebp - 0xb4], 0
jne 0x52a640
cmp dword [ebp - 0xbc], 0
jne 0x52a640
mov dword [ebp - 0x134], 0
jmp 0x52a64a
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.005084b0
add esp, 0xc
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 1
je 0x52a72b
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 0x52a6b8
cmp dword [ebp - 0xb4], 0
jne 0x52a6b8
cmp dword [ebp - 0xbc], 0
je 0x52a6d7
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 0x52a6f4
cmp dword [ebp - 0xb4], 0
jne 0x52a6f4
cmp dword [ebp - 0xbc], 0
je 0x52a70c
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 0x52a74a
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.004ffda0
add esp, 0xc
cmp dword [ebp - 0x54], 0
jne 0x52a78a
cmp dword [ebp - 0xac], 0
je 0x52a78a
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.00509b50
add esp, 0x18
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp - 0x54], 0
jne 0x52a7ac
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.004efc50
add esp, 8
test eax, eax
je 0x52a7ac
jmp 0x52b92c
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 1
jne 0x52a7e8
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.0052b980
add esp, 0x20
jmp 0x52b92c
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d6400
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 0x52a889
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x52a889
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x52a889
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x95]
test edx, edx
jne 0x52a889
cmp dword [ebp + 0x24], 0
jne 0x52a889
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.004d5f10
add esp, 0x10
cmp dword [ebp - 0x54], 0
jne 0x52a8f3
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x52a8f3
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.004d5e30
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.004d5e30
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x52aaae
cmp dword [ebp - 0xa8], 0
je 0x52a90e
mov edx, dword [ebp - 0xa8]
movzx eax, word [edx + 0x32]
mov dword [ebp - 0x140], eax
jmp 0x52a918
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 0x52aaae
cmp dword [ebp - 0xac], 0
je 0x52a98e
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x144], ecx
jmp 0x52a998
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 0x52a9f5
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.004d5e30
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.004d5f10
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0xa8], 0
je 0x52aa65
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00508b00
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x52aa65
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.004d6e20
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x52aaae
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.005299e0
add esp, 0x20
cmp dword [ebp - 0xac], 0
je 0x52aaae
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0x54], 0
je 0x52aae2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00508510
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 0x52ad94
cmp dword [ebp + 0x24], 0
je 0x52ab21
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.004f7ab0
add esp, 0x10
mov dword [ebp - 0xe8], 0
jmp 0x52ac1d
mov dword [ebp - 0x30], 4
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x52ab62
cmp dword [ebp - 0xb4], 0
jne 0x52ab62
cmp dword [ebp - 0xbc], 0
jne 0x52ab62
movzx eax, byte [ebp - 0x9d]
test eax, eax
jne 0x52ab62
cmp dword [ebp - 0x94], 0
jne 0x52ab62
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.0053e600
add esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x52ab96
jmp 0x52b92c
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00536d60
add esp, 8
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00536d80
add esp, 4
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xc8], 1
je 0x52ac1d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00508510
add esp, 4
cmp dword [ebp - 0xc8], 2
jne 0x52ac1d
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
jl 0x52ac1d
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0xe0]
je 0x52ac1d
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x52ac1d
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x52acaf
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.004d5f10
add esp, 0x10
cmp dword [ebp - 0xc8], 0
jne 0x52ac94
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.004d5e30
add esp, 0x14
jmp 0x52acaa
cmp dword [ebp - 0x24], 0
je 0x52acaa
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d6be0
add esp, 8
jmp 0x52ad94
mov dword [ebp - 0x3c], 0
jmp 0x52acc1
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
movsx ecx, word [ebp - 0x8c]
cmp dword [ebp - 0x3c], ecx
jge 0x52acfe
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.004f5360
add esp, 0x14
jmp 0x52acb8
cmp dword [ebp - 0xc8], 0
je 0x52ad32
cmp dword [ebp - 0x24], 0
je 0x52ad1d
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d6be0
add esp, 8
movsx eax, word [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 8], ecx
jmp 0x52ad94
movsx edx, word [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00510120
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.004d6060
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.004d6370
add esp, 0x18
cmp dword [ebp + 0x24], 0
jne 0x52b0e4
cmp dword [ebp - 0x54], 0
jne 0x52adb9
cmp dword [ebp - 0xc8], 2
je 0x52adb9
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0053f410
add esp, 4
cmp dword [ebp - 0xac], 0
jne 0x52ae76
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0xc8], 0
je 0x52ae05
cmp dword [ebp - 0x2c], 0
jl 0x52adef
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 0x52ae05
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 0x52ae37
xor ecx, ecx
cmp dword [ebp - 0x28], 0
setge cl
mov edx, dword [ebp - 0xd8]
sub edx, ecx
test edx, edx
jle 0x52ae37
push 0xe
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d5ed0
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.00513b00
add esp, 0x20
cmp dword [ebp - 0x110], 0
je 0x52ae76
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d6960
add esp, 8
cmp dword [ebp - 0xc8], 0
je 0x52af19
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0xe0]
je 0x52aec0
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0xe0]
je 0x52aec0
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.004d6370
add esp, 0x18
cmp dword [ebp - 0xc8], 1
je 0x52aedb
mov edx, dword [ebp + 8]
push edx
call fcn.004d6400
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xa8], 0
je 0x52aeef
mov eax, dword [ebp - 8]
mov dword [ebp - 0x148], eax
jmp 0x52aef8
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.004d5f10
add esp, 0x10
jmp 0x52b0e4
cmp dword [ebp - 0xa8], 0
jne 0x52af2c
cmp dword [ebp - 0x54], 0
je 0x52b074
mov edx, dword [ebp + 8]
push edx
call fcn.004d6400
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.004d5f10
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d6730
add esp, 4
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x54], 0
je 0x52b034
cmp dword [ebp - 0xac], 0
jne 0x52b032
cmp dword [ebp - 0xa8], 0
je 0x52aff6
mov dword [ebp - 0x3c], 0
jmp 0x52af9e
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
movsx edx, word [ebp - 0x8c]
cmp dword [ebp - 0x3c], edx
jge 0x52afcc
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.004d5e30
add esp, 0x14
jmp 0x52af95
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.004d6370
add esp, 0x18
jmp 0x52b032
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.004d5f10
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.004d5e30
add esp, 0x14
jmp 0x52b072
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.004d5f10
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.004d6370
add esp, 0x18
jmp 0x52b0e4
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.004d5f10
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.004d6400
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.004d5f10
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.004d5e30
add esp, 0x14
movzx ecx, byte [ebp - 0xbd]
test ecx, ecx
je 0x52b140
cmp dword [ebp - 0x54], 0
jne 0x52b10e
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f71b0
add esp, 0xc
jmp 0x52b12e
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.004d5e30
add esp, 0x14
mov eax, dword [ebp - 0x40]
push eax
push 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d5ef0
add esp, 0xc
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x52b15e
cmp dword [ebp - 0xbc], 0
jne 0x52b15e
cmp dword [ebp - 0xb4], 0
je 0x52b2b0
cmp dword [ebp - 0xbc], 0
je 0x52b17f
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050f4d0
add esp, 8
mov dword [ebp - 0x14c], eax
jmp 0x52b189
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.00529780
add esp, 0x1c
or eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x3c], 0
jmp 0x52b1d6
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 0x52b286
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.00501840
add esp, 8
movsx edx, ax
add edx, dword [ebp - 4]
mov dword [ebp - 0xc4], edx
cmp dword [ebp - 0x114], 0xffffffff
je 0x52b246
cmp dword [ebp - 0x3c], 0x20
jge 0x52b23b
mov eax, 1
mov ecx, dword [ebp - 0x3c]
shl eax, cl
and eax, dword [ebp - 0x114]
jne 0x52b246
mov ecx, dword [ebp - 0x118]
and ecx, 1
je 0x52b26a
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.004f5360
add esp, 0x14
jmp 0x52b281
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
push 0x4b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d5f10
add esp, 0x10
jmp 0x52b1cd
movzx eax, byte [ebp - 0xbd]
test eax, eax
jne 0x52b2b0
cmp dword [ebp - 0xa8], 0
jne 0x52b2b0
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.004d5f10
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.00529780
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc4], eax
jmp 0x52b300
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 0x52b486
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + 0x20]
cmp dword [ebp - 0x3c], eax
jne 0x52b338
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
push 0x4b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d5f10
add esp, 0x10
jmp 0x52b481
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 0x52b378
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 0x52b373
mov edx, dword [ebp - 0xc4]
sub edx, 1
mov dword [ebp - 0xc4], edx
jmp 0x52b481
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 0x52b41c
cmp dword [ebp - 0x54], 0
je 0x52b3f6
cmp dword [ebp - 0xac], 0
je 0x52b3b2
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x150], ecx
jmp 0x52b3bf
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.004d5e30
add esp, 0x14
jmp 0x52b41a
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.004f71b0
add esp, 0xc
jmp 0x52b481
mov ecx, dword [ebp - 0xb0]
and ecx, 1
je 0x52b43c
cmp dword [ebp - 0x3c], 0x1f
jg 0x52b43c
mov edx, 1
mov ecx, dword [ebp - 0x3c]
shl edx, cl
and edx, dword [ebp - 0xc]
je 0x52b46a
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.004f5360
add esp, 0x14
mov dword [ebp - 0xe8], 0
jmp 0x52b481
mov edx, dword [ebp - 0xc4]
push edx
push 0
push 0x4b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d5f10
add esp, 0x10
jmp 0x52b2e8
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x52b4a5
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005105a0
add esp, 0xc
mov eax, dword [ebp - 0xb0]
and eax, 1
je 0x52b629
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00510240
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.005296b0
add esp, 0x24
cmp dword [ebp - 0xac], 0
jne 0x52b629
cmp dword [ebp - 0xa8], 0
je 0x52b538
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.004d6370
add esp, 0x18
jmp 0x52b558
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.004d5e30
add esp, 0x14
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xc4], edx
jmp 0x52b582
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 0x52b60a
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 0x52b5cb
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 0x52b5c9
mov eax, dword [ebp - 0xc4]
sub eax, 1
mov dword [ebp - 0xc4], eax
jmp 0x52b605
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
cmp dword [edx + ecx*4], 0
jge 0x52b605
mov eax, dword [ebp - 0x64]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 0x3c], ecx
je 0x52b605
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.004f5360
add esp, 0x14
jmp 0x52b56a
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x52b629
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005105a0
add esp, 0xc
cmp dword [ebp - 0xac], 0
jne 0x52b81d
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.00512280
add esp, 0x34
cmp dword [ebp - 0x94], 0
jne 0x52b695
movzx eax, byte [ebp - 0x9d]
test eax, eax
je 0x52b6e7
cmp dword [ebp - 0xa8], 0
je 0x52b6c7
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.004d6370
add esp, 0x18
jmp 0x52b6e7
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.004d5e30
add esp, 0x14
cmp dword [ebp - 0xbc], 0
je 0x52b712
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.0050ef20
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.0050ab30
add esp, 0x18
cmp dword [ebp - 0xe8], 0
je 0x52b757
mov edx, dword [ebp - 0xe0]
push edx
push 0x8f
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d5ef0
add esp, 0xc
cmp dword [ebp - 0xbc], 1
jg 0x52b76b
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
je 0x52b785
push 0
mov edx, dword [ebp - 0xe0]
push edx
push 0x82
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d5f10
add esp, 0x10
cmp dword [ebp - 0xbc], 0
je 0x52b7b0
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.0050ef20
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.00513910
add esp, 0x24
cmp dword [ebp - 0xbc], 0
je 0x52b81d
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.0050fea0
add esp, 0x18
cmp dword [ebp - 0xe4], 0
je 0x52b83d
push 1
mov ecx, dword [ebp - 0xe4]
push ecx
push 0x56
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d5f10
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.005296b0
add esp, 0x24
cmp dword [ebp - 0xc8], 1
jne 0x52b879
jmp 0x52b8d2
cmp dword [ebp - 0xc8], 2
jne 0x52b8a3
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d6490
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0053f410
add esp, 4
jmp 0x52b8d2
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d6490
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.004d5f10
add esp, 0x10
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d6490
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x52b90b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x52b90b
cmp dword [ebp + 0x24], 0
jne 0x52b90b
mov edx, dword [ebp + 8]
push edx
call fcn.00510ca0
add esp, 4
cmp dword [ebp - 0xe4], 0
je 0x52b92c
push str.rows_updated
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005099f0
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
call fcn.004ffdd0
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004aa9d0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00507b60
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004f2dd0
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004f1950
add esp, 8
mov esp, ebp
pop ebp
ret