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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [ebx + 0x24], 0
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], eax
jne 0x51adf2
cmp byte [eax + 0x51], 0
jne 0x51adf2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x519cbb
test dword [ecx + 4], 0x200
je 0x519cbb
cmp dword [ecx + 0x34], 0
jne 0x519cbb
mov edx, dword [ecx + 0x1c]
push 1
push ecx
push eax
mov dword [ebp - 0x3c], edx
mov dword [ecx + 0x1c], 0
call fcn.004e0e60
add esp, 0xc
mov dword [ebp - 0xc], 0
push edi
push ebx
call fcn.00529f10
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
je 0x519f67
mov ecx, dword [edi + 0x48]
mov esi, 0xfff0bdc0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x519cfe
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x34], esi
cmp dword [eax], ecx
je 0x519cfe
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x519cf3
mov dword [ebp - 0x34], esi
mov eax, dword [edx + 0x10]
mov ecx, esi
add ecx, ecx
push dword [eax + ecx*8]
push 0
push dword [edi]
push 0x12
push ebx
call fcn.005040f0
add esp, 0x14
test eax, eax
jne 0x519f64
mov eax, dword [edi + 0x24]
shr eax, 7
and eax, 0xffffff01
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x7d
push edi
push ebx
call fcn.0052b6b0
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xc]
push edi
push ebx
mov dword [ebp - 0x84], eax
call fcn.0053b0b0
add esp, 0x1c
test eax, eax
jne 0x519f64
push dword [ebp - 0x80]
push edi
push ebx
call fcn.0051af90
add esp, 0xc
test eax, eax
jne 0x519f64
push ebx
call fcn.00518950
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
je 0x519f64
cmp byte [ebx + 0x12], 0
jne 0x519d95
or dword [edi + 0x98], 0x10
cmp dword [ebp - 0xc], 0
jne 0x519da5
cmp dword [ebp - 0x54], 0
jne 0x519da5
xor eax, eax
jmp 0x519daa
mov eax, 1
push esi
push eax
push ebx
call fcn.00504b10
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x519dd6
push esi
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call fcn.00556ae0
add esp, 0x14
test eax, eax
jne 0x51ad63
push dword [ebp - 8]
push esi
push ebx
call fcn.004dbc70
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x38], eax
movsx eax, word [edx + 0x2a]
inc eax
mov dword [ebp - 0x1c], esi
add eax, ecx
mov dword [ebx + 0x2c], eax
cmp dword [edx + 0x38], 0
je 0x519e0f
inc esi
inc eax
mov dword [ebp - 0x1c], esi
mov dword [ebx + 0x2c], eax
test dword [edx + 0x24], 0x440
lea eax, [esi + 1]
mov esi, dword [ebp + 0x14]
sete byte [ebp + 0x13]
mov dword [ebp - 0x28], eax
test esi, esi
je 0x51a03b
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x519e46
mov eax, dword [esi]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jl 0x519e34
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x51a03b
movzx eax, word [edx + 0x2a]
cwde
xor esi, esi
mov dword [ebp - 0x8c], eax
test eax, eax
jle 0x519ed2
mov eax, dword [ebp + 0x14]
mov edi, dword [edx + 4]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x44], eax
push dword [edi]
push dword [eax]
call fcn.0052a920
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x519e93
inc esi
add edi, 0x14
cmp esi, dword [ebp - 0x8c]
jl 0x519e72
jmp 0x519ecc
mov dword [eax + 4], esi
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x18], esi
mov edx, dword [eax + 4]
movzx eax, byte [ebp + 0x13]
cmove ecx, eax
mov eax, dword [ebp - 8]
mov byte [ebp + 0x13], cl
mov ecx, dword [ebp - 0x18]
movsx eax, word [eax + 0x28]
cmp esi, eax
lea eax, [esi + esi*4]
cmovne ecx, dword [ebp - 0x20]
test byte [edx + eax*4 + 0x10], 0x60
mov dword [ebp - 0x20], ecx
jne 0x519f50
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [edx + 0x2a]
mov edi, eax
cwde
cmp esi, eax
jl 0x519f39
mov eax, dword [ebp + 0x14]
push str._ROWID_
mov eax, dword [eax]
mov esi, dword [eax + ecx*8]
push esi
call fcn.0052a920
add esp, 8
test eax, eax
je 0x519f1f
push str.ROWID
push esi
call fcn.0052a920
add esp, 8
test eax, eax
je 0x519f1f
push 0x592dfc
push esi
call fcn.0052a920
add esp, 8
test eax, eax
jne 0x51a01b
cmp byte [ebp - 0x90], 0
jne 0x51a01b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov byte [ebp + 0x13], 0
mov eax, dword [ebp + 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [eax + 4]
jge 0x51a038
mov eax, edi
jmp 0x519e57
lea eax, [esi + esi*4]
push dword [edx + eax*4]
push str.cannot_INSERT_into_generated_column___s_
push ebx
call fcn.0050e160
add esp, 0xc
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x30]
push ebx
call fcn.005298c0
mov eax, dword [ebp - 0x3c]
add esp, 8
test eax, eax
je 0x519f8a
push eax
push ebx
call fcn.004e96a0
add esp, 8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x519fe9
mov eax, dword [eax]
test eax, eax
je 0x519fa1
push eax
push ebx
call fcn.004e96a0
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
test eax, eax
je 0x519fb5
push eax
push ebx
call fcn.00511640
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x519fc9
push eax
push ebx
call fcn.004e96a0
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x519fdd
push eax
push ebx
call fcn.00511640
add esp, 8
push dword [ebp + 0x1c]
push ebx
call fcn.0050c300
add esp, 8
test edi, edi
je 0x519ff9
push 1
push edi
push ebx
call fcn.004e0e60
add esp, 0xc
push esi
push ebx
call fcn.00518e80
mov eax, dword [ebp - 0x40]
add esp, 8
test eax, eax
je 0x51a014
push eax
push ebx
call fcn.0050c300
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [ebp + 0xc]
push str.table__S_has_no_column_named__s
push ebx
call fcn.0050e160
add esp, 0x14
mov byte [ebx + 0x11], 1
jmp 0x519f64
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], 0
je 0x51a24d
inc dword [ebx + 0x2c]
mov edi, dword [edi + 0x6c]
mov esi, dword [ebx + 0x2c]
lea eax, [edi + 1]
push eax
push 0
push esi
push 0xd
push dword [ebp - 4]
call fcn.0052e110
xor eax, eax
mov byte [ebp - 0x74], 0xd
cmp byte [ebp + 0x13], al
mov dword [ebp - 0x70], esi
cmovne eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], 0
movsx eax, word [eax + 0x2a]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.005263f0
mov ecx, dword [ebp - 0x6c]
add esp, 0x20
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x519f64
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x51], 0
jne 0x519f64
cmp dword [ebx + 0x24], 0
jne 0x519f64
push esi
mov esi, dword [ebp - 4]
push esi
call fcn.0052f080
push edi
push esi
call fcn.00537990
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp dword [ebp - 0x54], 0
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jne 0x51a1b2
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x51a108
cmp dword [ebx + 0x74], eax
jne 0x51a0fc
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x51a0fc
mov byte [ebx + 0x17], 1
push ebx
call fcn.0052eaa0
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x8c], ecx
cmp dword [edx + 0x38], 0
je 0x51a133
mov edx, dword [edx + 0x40]
test edx, edx
je 0x51a135
mov eax, dword [ebx]
cmp dword [edx], eax
je 0x51a12e
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x51a123
mov eax, dword [ebp - 0x14]
jmp 0x51a135
xor edx, edx
mov edi, 1
cmp ecx, edi
jle 0x51a1a4
mov eax, dword [eax]
mov al, byte [eax + 0x51]
mov byte [ebp + 0x13], al
test al, al
je 0x51a151
mov eax, 0x5b6fa4
jmp 0x51a15d
mov eax, dword [ebp - 0x14]
lea ecx, [edi + edi*4]
mov eax, dword [eax + 0x68]
lea eax, [eax + ecx*4]
mov cl, byte [eax]
cmp cl, 0x60
jne 0x51a18e
mov ecx, dword [ebp - 0x34]
cmp dword [eax + 0xc], ecx
jne 0x51a198
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 0x1c]
je 0x51a1b2
mov eax, dword [eax + 8]
test eax, eax
je 0x51a198
mov edi, edi
cmp ecx, dword [eax + 0x2c]
je 0x51a1b2
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x51a180
jmp 0x51a198
cmp cl, 0xa5
jne 0x51a198
cmp dword [eax + 0x10], edx
je 0x51a1b2
mov al, byte [ebp + 0x13]
inc edi
cmp edi, dword [ebp - 0x8c]
jl 0x51a146
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jmp 0x51a296
mov edx, dword [ebx + 0x28]
push ebx
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], edx
lea eax, [edx + 1]
mov dword [ebx + 0x28], eax
call fcn.00518020
push ebx
mov edi, eax
call fcn.00518020
push dword [ebp - 0x18]
mov ebx, eax
push edx
push 0x64
push esi
call fcn.0052e0b0
mov eax, dword [ebp - 0x70]
push eax
push 0xe
push esi
mov dword [ebp - 0x14], eax
call fcn.0052e050
push edi
push dword [ebp - 0x18]
mov esi, eax
push dword [ebp - 0x48]
push 0x5b
push dword [ebp - 4]
call fcn.0052e110
push ebx
push dword [ebp - 0x24]
push 0x78
push dword [ebp - 4]
call fcn.0052e0b0
add esp, 0x48
push ebx
push edi
push dword [ebp - 0x24]
push 0x79
push dword [ebp - 4]
call fcn.0052e110
push esi
push dword [ebp - 4]
call fcn.00537560
push esi
push dword [ebp - 4]
call fcn.00537990
push edi
push dword [ebp + 8]
call fcn.00524370
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00524370
mov esi, dword [ebp - 0x18]
add esp, 0x34
jmp 0x51a296
xor eax, eax
mov dword [ebp - 0x7c], ebx
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 dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], 0xffffffff
test eax, eax
je 0x51a291
mov esi, dword [eax]
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x18], esi
push eax
call fcn.00524860
add esp, 8
test eax, eax
jne 0x519f64
jmp 0x51a296
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp - 8]
jne 0x51a2e9
test esi, esi
jle 0x51a2e9
movsx eax, word [edi + 0x28]
mov dword [ebp - 0x20], eax
test eax, eax
js 0x51a2e9
test byte [edi + 0x24], 0x60
je 0x51a2e9
lea edx, [eax - 1]
test edx, edx
js 0x51a2e9
mov eax, dword [edi + 4]
lea ecx, [edx + 1]
mov ebx, dword [ebp - 0x20]
lea ecx, [edx + ecx*4]
lea ecx, [eax + ecx*4]
lea ebx, [ebx]
test byte [ecx], 0x60
lea eax, [ebx - 1]
lea ecx, [ecx - 0x14]
cmove eax, ebx
sub edx, 1
mov ebx, eax
jns 0x51a2d0
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
movsx esi, word [edi + 0x2a]
test esi, esi
jle 0x51a315
mov ecx, dword [edi + 4]
mov edx, esi
add ecx, 0x10
xor edi, edi
jmp 0x51a300
test byte [ecx], 0x62
lea eax, [edi + 1]
lea ecx, [ecx + 0x14]
cmove eax, edi
mov edi, eax
sub edx, 1
jne 0x51a300
jmp 0x51a317
xor edi, edi
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp - 0x18]
jne 0x51a344
test edx, edx
je 0x51a363
sub esi, edi
cmp edx, esi
je 0x51a363
push edx
push esi
push 0
push dword [ebp + 0xc]
push str.table__S_has__d_columns_but__d_values_were_supplied
push ebx
call fcn.0050e160
add esp, 0x18
jmp 0x519f64
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
cmp edx, eax
je 0x51a363
push eax
push edx
push str._d_values_for__d_columns
push ebx
call fcn.0050e160
add esp, 0x10
jmp 0x519f67
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x51a39a
cmp byte [ebx + 0x12], 0
jne 0x51a39a
cmp dword [ebx + 0x78], 0
jne 0x51a39a
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push eax
push 0
push 0x45
push dword [ebp - 4]
mov dword [ebp - 0x88], eax
call fcn.0052e0b0
add esp, 0x10
cmp dword [ebp - 0x84], 0
jne 0x51a41c
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x61
push esi
push ebx
call fcn.0051d410
mov edi, eax
push 0
lea eax, [edi*4 + 8]
push eax
push dword [ebp - 0x30]
call fcn.0050c410
mov ecx, eax
add esp, 0x2c
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x519f64
mov esi, dword [esi + 8]
xor edx, edx
test edi, edi
jle 0x51a412
lea ebx, [ebx]
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [ecx + edx*4], eax
inc edx
movzx ecx, word [esi + 0x34]
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 0x2c], eax
mov esi, dword [esi + 0x14]
cmp edx, edi
jl 0x51a3f0
jmp 0x51a415
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [ecx + edx*4], eax
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x51a491
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x51a438
push dword [eax]
push str.UPSERT_not_implemented_for_virtual_table___s_
jmp 0x519f5b
cmp dword [eax + 0xc], 0
je 0x51a451
push str.cannot_UPSERT_a_view
push ebx
call fcn.0050e160
add esp, 8
jmp 0x519f64
push dword [esi]
push ebx
call fcn.00518a00
add esp, 8
test eax, eax
jne 0x519f64
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ecx + 0x34], eax
cmp dword [esi], 0
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], eax
je 0x51a494
push esi
push ecx
push ebx
call fcn.0052d5f0
add esp, 0xc
jmp 0x51a494
mov edi, dword [ebp - 0x28]
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 4]
je 0x51a4b6
push dword [ebp - 0x24]
push 0x25
push esi
call fcn.0052e050
mov dword [ebp - 0x5c], eax
add esp, 0xc
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x58], eax
jmp 0x51a4ed
cmp dword [ebp - 0xc], 0
je 0x51a4ed
push dword [ebp - 0x14]
push 0xe
push esi
call fcn.0052e050
mov edx, eax
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], edx
test eax, eax
js 0x51a4ed
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
add ecx, eax
push ecx
push 0x4d
push esi
call fcn.0052e0b0
add esp, 0x10
mov eax, dword [ebp - 8]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp + 0x10], ecx
cmp dx, word [eax + 0x2a]
jge 0x51a7c9
mov dword [ebp - 0x44], edx
jmp 0x51a510
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x51a569
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51a535
push 0
push 0
push edi
push 0x49
push esi
call fcn.004efc20
add esp, 0x14
jmp 0x51a7a8
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x51a7a8
mov eax, dword [ebp - 8]
mov esi, dword [eax + 4]
movzx eax, word [esi + edx + 0x10]
add esi, edx
test al, 0x62
je 0x51a66f
inc dword [ebp - 0x34]
test al, 0x20
je 0x51a58e
mov esi, dword [ebp - 4]
dec edi
jmp 0x51a7ab
test al, 0x40
je 0x51a5a4
test byte [ebp - 0x80], 1
mov esi, dword [ebp - 4]
je 0x51a7ab
jmp 0x51a518
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x51a676
cmp byte [ebx + 0x17], 0
mov esi, dword [esi + 4]
je 0x51a5fe
mov dword [ebp - 0x60], 0
mov eax, 2
mov dword [ebp - 0x70], 0x529310
mov dword [ebp - 0x74], fcn.004e9960
mov word [ebp - 0x64], ax
test esi, esi
je 0x51a5ee
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0054d8e0
add esp, 8
cmp word [ebp - 0x64], 0
je 0x51a5fe
push edi
push esi
push ebx
call fcn.0050fe30
add esp, 0xc
jmp 0x51a7a5
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x51a61c
push 0
push 0
push esi
push eax
call fcn.004e8f30
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x14]
jmp 0x51a61e
xor esi, esi
cmp byte [eax + 0x51], 0
jne 0x51a658
push edi
push esi
push ebx
call fcn.0050ffd0
add esp, 0xc
cmp eax, edi
je 0x51a655
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x51a655
push edi
push eax
mov eax, dword [esi + 4]
and eax, 0x200000
neg eax
sbb eax, eax
add eax, 0x4e
push eax
push ecx
call fcn.0052e0b0
add esp, 0x10
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x51a7a5
push esi
push eax
call fcn.00511640
add esp, 8
jmp 0x51a7a5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51a6a3
mov ecx, dword [eax + 4]
xor edx, edx
test ecx, ecx
jle 0x51a696
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
add eax, 4
cmp dword [eax], ebx
je 0x51a693
inc edx
add eax, 8
cmp edx, ecx
jl 0x51a687
mov ebx, dword [ebp + 8]
cmp edx, ecx
jge 0x51a5af
mov ecx, dword [ebp + 0x10]
jmp 0x51a6b2
cmp dword [ebp - 0x18], 0
je 0x51a5af
mov edx, ecx
sub edx, dword [ebp - 0x34]
cmp byte [ebp - 0xd], 0
je 0x51a70a
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51a6d8
push edi
push edx
push dword [ebp - 0x24]
push 0x59
push esi
call fcn.004efc20
add esp, 0x14
jmp 0x51a7a8
mov ebx, dword [ebp - 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x51a7a8
cmp dword [ebp - 0xc], 0
je 0x51a76a
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
je 0x51a7ab
mov ecx, dword [esi + 0x6c]
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x51a73a
push 0
push edi
push edx
push 0x4e
push esi
call fcn.004efc20
add esp, 0x14
jmp 0x51a7a8
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x51a7a8
mov ecx, dword [ebp - 0x3c]
lea eax, [edx + edx*4]
push edi
mov esi, dword [ecx + eax*4 + 4]
push esi
push ebx
call fcn.0050ffd0
add esp, 0xc
cmp eax, edi
je 0x51a7a5
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x51a7a5
push edi
push eax
mov eax, dword [esi + 4]
and eax, 0x200000
neg eax
sbb eax, eax
add eax, 0x4e
push eax
push ecx
call fcn.0052e0b0
add esp, 0x10
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
inc ecx
add dword [ebp - 0x44], 0x14
inc edi
mov edx, dword [ebp - 0x44]
mov dword [ebp + 0x10], ecx
movsx eax, word [eax + 0x2a]
cmp ecx, eax
mov eax, dword [ebp - 8]
jl 0x51a510
dec dword [ebx + 0x38]
test byte [ebp - 0x80], 1
mov edi, dword [ebx + 0x38]
mov dword [ebp + 0x10], edi
je 0x51a96d
movsx eax, word [eax + 0x2a]
inc eax
push eax
push ebx
call fcn.00517fc0
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x20]
push esi
test eax, eax
jns 0x51a809
push 0xffffffffffffffff
push 0x45
push dword [ebp - 4]
call fcn.0052e0b0
add esp, 0x10
jmp 0x51a88b
cmp byte [ebp - 0xd], 0
je 0x51a822
push eax
push dword [ebp - 0x24]
push 0x59
push dword [ebp - 4]
call fcn.0052e110
add esp, 0x14
jmp 0x51a835
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 4]
push ebx
call fcn.0050ebc0
add esp, 0xc
push esi
push 0x33
push dword [ebp - 4]
call fcn.0052e050
push esi
push 0xffffffffffffffff
push 0x45
push dword [ebp - 4]
mov edi, eax
call fcn.0052e0b0
mov eax, dword [ebp - 4]
add esp, 0x1c
mov edx, dword [eax + 0x6c]
test edi, edi
jns 0x51a85f
lea edi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x51a86e
mov eax, 0x5b6fa4
jmp 0x51a87a
mov eax, dword [ebp - 4]
lea ecx, [edi + edi*4]
mov eax, dword [eax + 0x68]
lea eax, [eax + ecx*4]
push esi
push 0xf
push dword [ebp - 4]
mov dword [eax + 8], edx
call fcn.0052e050
add esp, 0xc
mov eax, dword [ebp - 8]
lea edi, [esi + 1]
movsx edx, word [eax + 0x2c]
mov eax, dword [ebp - 4]
dec edx
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x51a8b3
push edx
push edi
push dword [ebp - 0x28]
push 0x4d
push eax
call fcn.004efc20
add esp, 0x14
jmp 0x51a8e5
mov ebx, dword [ebp - 4]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 8]
test byte [eax + 0x24], 0x60
je 0x51a8fc
push eax
push edi
push ebx
call fcn.0050a9e0
mov eax, dword [ebp - 8]
add esp, 0xc
cmp dword [ebp - 0x84], 0
jne 0x51a912
push edi
push eax
push dword [ebp - 4]
call fcn.0052a9d0
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, esi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
movsx eax, word [edx + 0x2a]
sub ecx, eax
dec ecx
push ecx
push edx
push 1
push 0
push 0x7d
push dword [ebp - 0x54]
push ebx
call fcn.00509840
mov ecx, dword [ebp - 8]
add esp, 0x24
movsx eax, word [ecx + 0x2a]
inc eax
cmp eax, 1
jne 0x51a960
test esi, esi
je 0x51a970
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x51a970
movzx eax, al
mov dword [ebx + eax*4 + 0x94], esi
inc byte [ebx + 0x13]
jmp 0x51a970
cmp eax, dword [ebx + 0x1c]
jle 0x51a970
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], esi
jmp 0x51a970
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x84], 0
jne 0x51ac5a
mov ecx, dword [ecx + 0x38]
mov esi, dword [ebp - 4]
test ecx, ecx
je 0x51a99d
push dword [ebp - 0x38]
push 0
push 0x48
push esi
call fcn.0052e0b0
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x51aa71
cmp byte [ebp - 0xd], 0
je 0x51a9c2
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push 0x59
push esi
call fcn.0052e110
add esp, 0x14
jmp 0x51aa06
cmp dword [ebp - 0xc], 0
jne 0x51aa06
mov edx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 4]
cmp byte [eax], 0x77
jne 0x51a9f9
test ecx, ecx
jne 0x51a9f9
push dword [ebp - 0x4c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push esi
call fcn.0052e110
add esp, 0x14
mov esi, 1
jmp 0x51aaaa
push dword [ebp - 0x1c]
push eax
push ebx
call fcn.0050ebc0
add esp, 0xc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x51aa4c
push dword [ebp - 0x1c]
push 0x33
push esi
call fcn.0052e050
push dword [ebp - 0x4c]
mov esi, eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push dword [ebp - 4]
call fcn.0052e110
push esi
mov esi, dword [ebp - 4]
push esi
call fcn.00537990
add esp, 0x28
push dword [ebp - 0x1c]
push 0xf
push esi
call fcn.0052e050
add esp, 0xc
jmp 0x51aaa8
mov eax, dword [esi + 0x6c]
add eax, 2
push eax
push dword [ebp - 0x1c]
push 0x32
push esi
call fcn.0052e0b0
add esp, 0x10
push dword [ebp - 0x1c]
push 0xf
push esi
call fcn.0052e050
add esp, 0xc
jmp 0x51aaa8
test ecx, ecx
jne 0x51aa98
cmp byte [ebp - 0x90], cl
jne 0x51aa98
push dword [ebp - 0x4c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push esi
call fcn.0052e110
add esp, 0x14
mov esi, 1
jmp 0x51aaaa
push dword [ebp - 0x1c]
push 0
push 0x48
push esi
call fcn.0052e0b0
add esp, 0x10
xor esi, esi
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x51aac5
push dword [ebp - 0x1c]
push eax
push 0x97
push dword [ebx + 8]
call fcn.0052e0b0
add esp, 0x10
mov ecx, dword [ebp - 8]
test byte [ecx + 0x24], 0x60
je 0x51aade
push ecx
push dword [ebp - 0x28]
push ebx
call fcn.0050a9e0
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp dword [ecx + 0x38], 0
je 0x51abdd
mov esi, dword [ecx + 0x40]
test esi, esi
je 0x51aafd
mov eax, dword [ebp - 0x30]
cmp dword [esi], eax
je 0x51aafd
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x51aaf2
push ecx
push ebx
call fcn.0053bca0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 4]
movsx edi, word [eax + 0x2a]
mov edx, dword [ecx + 0x6c]
add edi, 2
cmp dword [ecx + 0x70], edx
jg 0x51ab33
push dword [ebp - 0x38]
push edi
push 1
mov edi, ecx
push 0xa
push edi
call fcn.004efc20
add esp, 0x14
mov edx, eax
jmp 0x51ab6a
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x38]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp - 4]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x51aba7
test edx, edx
jns 0x51ab7a
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x51ab99
push 0xfffffffffffffff4
push esi
push eax
push edi
call fcn.00547810
add esp, 0x10
jmp 0x51aba7
test esi, esi
je 0x51aba7
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf4
inc dword [esi + 0xc]
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x51abca
mov ecx, dword [ebp + 0x18]
cmp ecx, 0xb
movzx edx, cx
mov ecx, 2
cmove edx, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x51ac5d
mov eax, dword [ebp + 0x1c]
push eax
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp - 0x38]
shr eax, 0x1f
xor al, 1
movzx eax, al
push eax
push 0
push edi
push dword [ebp - 0x50]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push ecx
push ebx
call fcn.00515600
push 0
push 0
push edi
push 0
push dword [ebp - 8]
push ebx
call fcn.005145b0
mov edi, dword [ebp - 4]
add esp, 0x4c
cmp dword [ebp + 8], 0
je 0x51ac36
cmp dword [edi + 0xd8], 0
je 0x51ac36
xor eax, eax
jmp 0x51ac3b
mov eax, 1
push eax
push esi
mov esi, dword [ebp - 8]
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push dword [ebp - 0x50]
push dword [ebp - 0x2c]
push esi
push ebx
call fcn.0050a7d0
add esp, 0x24
jmp 0x51ac60
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x51ac78
push 1
push eax
push 0x52
push edi
call fcn.0052e0b0
add esp, 0x10
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x51aca3
push dword [ebp + 0x10]
movsx eax, word [esi + 0x2a]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
sub ecx, 2
push ecx
push esi
push 2
push 0
push 0x7d
push edx
push ebx
call fcn.00509840
add esp, 0x24
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x51acc0
push edx
push edi
push ecx
call fcn.004fd830
add esp, 0xc
jmp 0x51acc9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp byte [ebp - 0xd], 0
je 0x51ad28
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x24]
push esi
push 5
push edi
call fcn.0052e0b0
mov eax, dword [edi]
add esp, 0x10
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x51ad02
mov eax, 0x5b6fa4
push esi
push 0x74
push edi
mov dword [eax + 8], edx
call fcn.0052e050
add esp, 0xc
jmp 0x51ad63
mov ecx, dword [ebp - 0x5c]
lea eax, [edx - 1]
test ecx, ecx
push esi
cmovns eax, ecx
push 0x74
push edi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
call fcn.0052e050
add esp, 0xc
jmp 0x51ad63
cmp dword [ebp - 0xc], 0
je 0x51ad63
push dword [ebp - 0x58]
push edi
call fcn.00537560
mov eax, dword [edi]
add esp, 8
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x51ad4c
mov eax, 0x5b6fa4
jmp 0x51ad60
mov ecx, dword [ebp - 0x5c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp byte [ebx + 0x12], 0
jne 0x51ad7e
cmp dword [ebx + 0x78], 0
jne 0x51ad7e
cmp dword [ebx + 0x70], 0
je 0x51ad7e
push ebx
call fcn.004dbd60
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x519f64
push 1
push eax
push 0x50
push edi
call fcn.0052e0b0
push 1
push edi
call fcn.0053a610
mov eax, dword [edi]
add esp, 0x18
cmp byte [eax + 0x51], 0
jne 0x519f64
mov esi, dword [edi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x51adc2
cmp dword [esi + 0x18], 0
je 0x51adcb
push esi
call fcn.00548b50
add esp, 4
mov eax, 0xa02
mov dword [esi + 0x10], str.rows_inserted
mov dword [esi + 0x24], 0
mov dword [esi + 0xc], 0xd
mov word [esi + 8], ax
mov byte [esi + 0xa], 1
jmp 0x519f64
mov edi, dword [ebp + 0x10]
jmp 0x519f6a