Function at 0x5197e0
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 0x51a9d2
cmp byte [eax + 0x51], 0
jne 0x51a9d2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x51989b
test dword [ecx + 4], 0x200
je 0x51989b
cmp dword [ecx + 0x34], 0
jne 0x51989b
mov edx, dword [ecx + 0x1c]
push 1
push ecx
push eax
mov dword [ebp - 0x3c], edx
mov dword [ecx + 0x1c], 0
call fcn.004e0a40
add esp, 0xc
mov dword [ebp - 0xc], 0
push edi
push ebx
call fcn.00529ae0
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
je 0x519b47
mov ecx, dword [edi + 0x48]
mov esi, 0xfff0bdc0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x5198de
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x34], esi
cmp dword [eax], ecx
je 0x5198de
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x5198d3
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.00503cc0
add esp, 0x14
test eax, eax
jne 0x519b44
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.0052b280
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xc]
push edi
push ebx
mov dword [ebp - 0x84], eax
call fcn.0053aca0
add esp, 0x1c
test eax, eax
jne 0x519b44
push dword [ebp - 0x80]
push edi
push ebx
call fcn.0051ab70
add esp, 0xc
test eax, eax
jne 0x519b44
push ebx
call fcn.00518520
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
je 0x519b44
cmp byte [ebx + 0x12], 0
jne 0x519975
or dword [edi + 0x98], 0x10
cmp dword [ebp - 0xc], 0
jne 0x519985
cmp dword [ebp - 0x54], 0
jne 0x519985
xor eax, eax
jmp 0x51998a
mov eax, 1
push esi
push eax
push ebx
call fcn.005046e0
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x5199b6
push esi
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call fcn.005566c0
add esp, 0x14
test eax, eax
jne 0x51a943
push dword [ebp - 8]
push esi
push ebx
call fcn.004db860
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 0x5199ef
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 0x519c1b
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x519a26
mov eax, dword [esi]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jl 0x519a14
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x519c1b
movzx eax, word [edx + 0x2a]
cwde
xor esi, esi
mov dword [ebp - 0x8c], eax
test eax, eax
jle 0x519ab2
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.0052a4f0
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x519a73
inc esi
add edi, 0x14
cmp esi, dword [ebp - 0x8c]
jl 0x519a52
jmp 0x519aac
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 0x519b30
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [edx + 0x2a]
mov edi, eax
cwde
cmp esi, eax
jl 0x519b19
mov eax, dword [ebp + 0x14]
push str._ROWID_
mov eax, dword [eax]
mov esi, dword [eax + ecx*8]
push esi
call fcn.0052a4f0
add esp, 8
test eax, eax
je 0x519aff
push str.ROWID
push esi
call fcn.0052a4f0
add esp, 8
test eax, eax
je 0x519aff
push 0x592d0c
push esi
call fcn.0052a4f0
add esp, 8
test eax, eax
jne 0x519bfb
cmp byte [ebp - 0x90], 0
jne 0x519bfb
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 0x519c18
mov eax, edi
jmp 0x519a37
lea eax, [esi + esi*4]
push dword [edx + eax*4]
push str.cannot_INSERT_into_generated_column___s_
push ebx
call fcn.0050dd30
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.00529490
mov eax, dword [ebp - 0x3c]
add esp, 8
test eax, eax
je 0x519b6a
push eax
push ebx
call fcn.004e9280
add esp, 8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x519bc9
mov eax, dword [eax]
test eax, eax
je 0x519b81
push eax
push ebx
call fcn.004e9280
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
test eax, eax
je 0x519b95
push eax
push ebx
call fcn.00511210
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x519ba9
push eax
push ebx
call fcn.004e9280
add esp, 8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x519bbd
push eax
push ebx
call fcn.00511210
add esp, 8
push dword [ebp + 0x1c]
push ebx
call fcn.0050bed0
add esp, 8
test edi, edi
je 0x519bd9
push 1
push edi
push ebx
call fcn.004e0a40
add esp, 0xc
push esi
push ebx
call fcn.00518a50
mov eax, dword [ebp - 0x40]
add esp, 8
test eax, eax
je 0x519bf4
push eax
push ebx
call fcn.0050bed0
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.0050dd30
add esp, 0x14
mov byte [ebx + 0x11], 1
jmp 0x519b44
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], 0
je 0x519e2d
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.0052dce0
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.00525fc0
mov ecx, dword [ebp - 0x6c]
add esp, 0x20
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x519b44
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x51], 0
jne 0x519b44
cmp dword [ebx + 0x24], 0
jne 0x519b44
push esi
mov esi, dword [ebp - 4]
push esi
call fcn.0052ec50
push edi
push esi
call fcn.00537590
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 0x519d92
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x519ce8
cmp dword [ebx + 0x74], eax
jne 0x519cdc
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x519cdc
mov byte [ebx + 0x17], 1
push ebx
call fcn.0052e670
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 0x519d13
mov edx, dword [edx + 0x40]
test edx, edx
je 0x519d15
mov eax, dword [ebx]
cmp dword [edx], eax
je 0x519d0e
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x519d03
mov eax, dword [ebp - 0x14]
jmp 0x519d15
xor edx, edx
mov edi, 1
cmp ecx, edi
jle 0x519d84
mov eax, dword [eax]
mov al, byte [eax + 0x51]
mov byte [ebp + 0x13], al
test al, al
je 0x519d31
mov eax, 0x5b6fa4
jmp 0x519d3d
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 0x519d6e
mov ecx, dword [ebp - 0x34]
cmp dword [eax + 0xc], ecx
jne 0x519d78
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 0x1c]
je 0x519d92
mov eax, dword [eax + 8]
test eax, eax
je 0x519d78
mov edi, edi
cmp ecx, dword [eax + 0x2c]
je 0x519d92
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x519d60
jmp 0x519d78
cmp cl, 0xa5
jne 0x519d78
cmp dword [eax + 0x10], edx
je 0x519d92
mov al, byte [ebp + 0x13]
inc edi
cmp edi, dword [ebp - 0x8c]
jl 0x519d26
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jmp 0x519e76
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.00517bf0
push ebx
mov edi, eax
call fcn.00517bf0
push dword [ebp - 0x18]
mov ebx, eax
push edx
push 0x64
push esi
call fcn.0052dc80
mov eax, dword [ebp - 0x70]
push eax
push 0xe
push esi
mov dword [ebp - 0x14], eax
call fcn.0052dc20
push edi
push dword [ebp - 0x18]
mov esi, eax
push dword [ebp - 0x48]
push 0x5b
push dword [ebp - 4]
call fcn.0052dce0
push ebx
push dword [ebp - 0x24]
push 0x78
push dword [ebp - 4]
call fcn.0052dc80
add esp, 0x48
push ebx
push edi
push dword [ebp - 0x24]
push 0x79
push dword [ebp - 4]
call fcn.0052dce0
push esi
push dword [ebp - 4]
call fcn.00537160
push esi
push dword [ebp - 4]
call fcn.00537590
push edi
push dword [ebp + 8]
call fcn.00523f40
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00523f40
mov esi, dword [ebp - 0x18]
add esp, 0x34
jmp 0x519e76
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 0x519e71
mov esi, dword [eax]
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x18], esi
push eax
call fcn.00524430
add esp, 8
test eax, eax
jne 0x519b44
jmp 0x519e76
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp - 8]
jne 0x519ec9
test esi, esi
jle 0x519ec9
movsx eax, word [edi + 0x28]
mov dword [ebp - 0x20], eax
test eax, eax
js 0x519ec9
test byte [edi + 0x24], 0x60
je 0x519ec9
lea edx, [eax - 1]
test edx, edx
js 0x519ec9
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 0x519eb0
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
movsx esi, word [edi + 0x2a]
test esi, esi
jle 0x519ef5
mov ecx, dword [edi + 4]
mov edx, esi
add ecx, 0x10
xor edi, edi
jmp 0x519ee0
test byte [ecx], 0x62
lea eax, [edi + 1]
lea ecx, [ecx + 0x14]
cmove eax, edi
mov edi, eax
sub edx, 1
jne 0x519ee0
jmp 0x519ef7
xor edi, edi
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp - 0x18]
jne 0x519f24
test edx, edx
je 0x519f43
sub esi, edi
cmp edx, esi
je 0x519f43
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.0050dd30
add esp, 0x18
jmp 0x519b44
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
cmp edx, eax
je 0x519f43
push eax
push edx
push str._d_values_for__d_columns
push ebx
call fcn.0050dd30
add esp, 0x10
jmp 0x519b47
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x519f7a
cmp byte [ebx + 0x12], 0
jne 0x519f7a
cmp dword [ebx + 0x78], 0
jne 0x519f7a
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.0052dc80
add esp, 0x10
cmp dword [ebp - 0x84], 0
jne 0x519ffc
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.0051cff0
mov edi, eax
push 0
lea eax, [edi*4 + 8]
push eax
push dword [ebp - 0x30]
call fcn.0050bfe0
mov ecx, eax
add esp, 0x2c
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x519b44
mov esi, dword [esi + 8]
xor edx, edx
test edi, edi
jle 0x519ff2
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 0x519fd0
jmp 0x519ff5
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 0x51a071
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x51a018
push dword [eax]
push str.UPSERT_not_implemented_for_virtual_table___s_
jmp 0x519b3b
cmp dword [eax + 0xc], 0
je 0x51a031
push str.cannot_UPSERT_a_view
push ebx
call fcn.0050dd30
add esp, 8
jmp 0x519b44
push dword [esi]
push ebx
call fcn.005185d0
add esp, 8
test eax, eax
jne 0x519b44
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 0x51a074
push esi
push ecx
push ebx
call fcn.0052d1c0
add esp, 0xc
jmp 0x51a074
mov edi, dword [ebp - 0x28]
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 4]
je 0x51a096
push dword [ebp - 0x24]
push 0x25
push esi
call fcn.0052dc20
mov dword [ebp - 0x5c], eax
add esp, 0xc
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x58], eax
jmp 0x51a0cd
cmp dword [ebp - 0xc], 0
je 0x51a0cd
push dword [ebp - 0x14]
push 0xe
push esi
call fcn.0052dc20
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 0x51a0cd
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
add ecx, eax
push ecx
push 0x4d
push esi
call fcn.0052dc80
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 0x51a3a9
mov dword [ebp - 0x44], edx
jmp 0x51a0f0
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x51a149
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51a115
push 0
push 0
push edi
push 0x49
push esi
call fcn.004ef800
add esp, 0x14
jmp 0x51a388
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 0x51a388
mov eax, dword [ebp - 8]
mov esi, dword [eax + 4]
movzx eax, word [esi + edx + 0x10]
add esi, edx
test al, 0x62
je 0x51a24f
inc dword [ebp - 0x34]
test al, 0x20
je 0x51a16e
mov esi, dword [ebp - 4]
dec edi
jmp 0x51a38b
test al, 0x40
je 0x51a184
test byte [ebp - 0x80], 1
mov esi, dword [ebp - 4]
je 0x51a38b
jmp 0x51a0f8
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x51a256
cmp byte [ebx + 0x17], 0
mov esi, dword [esi + 4]
je 0x51a1de
mov dword [ebp - 0x60], 0
mov eax, 2
mov dword [ebp - 0x70], 0x528ee0
mov dword [ebp - 0x74], fcn.004e9540
mov word [ebp - 0x64], ax
test esi, esi
je 0x51a1ce
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0054d4b0
add esp, 8
cmp word [ebp - 0x64], 0
je 0x51a1de
push edi
push esi
push ebx
call fcn.0050fa00
add esp, 0xc
jmp 0x51a385
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x51a1fc
push 0
push 0
push esi
push eax
call fcn.004e8b10
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x14]
jmp 0x51a1fe
xor esi, esi
cmp byte [eax + 0x51], 0
jne 0x51a238
push edi
push esi
push ebx
call fcn.0050fba0
add esp, 0xc
cmp eax, edi
je 0x51a235
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x51a235
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.0052dc80
add esp, 0x10
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x51a385
push esi
push eax
call fcn.00511210
add esp, 8
jmp 0x51a385
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51a283
mov ecx, dword [eax + 4]
xor edx, edx
test ecx, ecx
jle 0x51a276
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
add eax, 4
cmp dword [eax], ebx
je 0x51a273
inc edx
add eax, 8
cmp edx, ecx
jl 0x51a267
mov ebx, dword [ebp + 8]
cmp edx, ecx
jge 0x51a18f
mov ecx, dword [ebp + 0x10]
jmp 0x51a292
cmp dword [ebp - 0x18], 0
je 0x51a18f
mov edx, ecx
sub edx, dword [ebp - 0x34]
cmp byte [ebp - 0xd], 0
je 0x51a2ea
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51a2b8
push edi
push edx
push dword [ebp - 0x24]
push 0x59
push esi
call fcn.004ef800
add esp, 0x14
jmp 0x51a388
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 0x51a388
cmp dword [ebp - 0xc], 0
je 0x51a34a
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
je 0x51a38b
mov ecx, dword [esi + 0x6c]
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x51a31a
push 0
push edi
push edx
push 0x4e
push esi
call fcn.004ef800
add esp, 0x14
jmp 0x51a388
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 0x51a388
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.0050fba0
add esp, 0xc
cmp eax, edi
je 0x51a385
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x51a385
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.0052dc80
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 0x51a0f0
dec dword [ebx + 0x38]
test byte [ebp - 0x80], 1
mov edi, dword [ebx + 0x38]
mov dword [ebp + 0x10], edi
je 0x51a54d
movsx eax, word [eax + 0x2a]
inc eax
push eax
push ebx
call fcn.00517b90
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x20]
push esi
test eax, eax
jns 0x51a3e9
push 0xffffffffffffffff
push 0x45
push dword [ebp - 4]
call fcn.0052dc80
add esp, 0x10
jmp 0x51a46b
cmp byte [ebp - 0xd], 0
je 0x51a402
push eax
push dword [ebp - 0x24]
push 0x59
push dword [ebp - 4]
call fcn.0052dce0
add esp, 0x14
jmp 0x51a415
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 4]
push ebx
call fcn.0050e790
add esp, 0xc
push esi
push 0x33
push dword [ebp - 4]
call fcn.0052dc20
push esi
push 0xffffffffffffffff
push 0x45
push dword [ebp - 4]
mov edi, eax
call fcn.0052dc80
mov eax, dword [ebp - 4]
add esp, 0x1c
mov edx, dword [eax + 0x6c]
test edi, edi
jns 0x51a43f
lea edi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x51a44e
mov eax, 0x5b6fa4
jmp 0x51a45a
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.0052dc20
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 0x51a493
push edx
push edi
push dword [ebp - 0x28]
push 0x4d
push eax
call fcn.004ef800
add esp, 0x14
jmp 0x51a4c5
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 0x51a4dc
push eax
push edi
push ebx
call fcn.0050a5b0
mov eax, dword [ebp - 8]
add esp, 0xc
cmp dword [ebp - 0x84], 0
jne 0x51a4f2
push edi
push eax
push dword [ebp - 4]
call fcn.0052a5a0
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.00509410
mov ecx, dword [ebp - 8]
add esp, 0x24
movsx eax, word [ecx + 0x2a]
inc eax
cmp eax, 1
jne 0x51a540
test esi, esi
je 0x51a550
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x51a550
movzx eax, al
mov dword [ebx + eax*4 + 0x94], esi
inc byte [ebx + 0x13]
jmp 0x51a550
cmp eax, dword [ebx + 0x1c]
jle 0x51a550
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], esi
jmp 0x51a550
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x84], 0
jne 0x51a83a
mov ecx, dword [ecx + 0x38]
mov esi, dword [ebp - 4]
test ecx, ecx
je 0x51a57d
push dword [ebp - 0x38]
push 0
push 0x48
push esi
call fcn.0052dc80
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x51a651
cmp byte [ebp - 0xd], 0
je 0x51a5a2
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push 0x59
push esi
call fcn.0052dce0
add esp, 0x14
jmp 0x51a5e6
cmp dword [ebp - 0xc], 0
jne 0x51a5e6
mov edx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 4]
cmp byte [eax], 0x77
jne 0x51a5d9
test ecx, ecx
jne 0x51a5d9
push dword [ebp - 0x4c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push esi
call fcn.0052dce0
add esp, 0x14
mov esi, 1
jmp 0x51a68a
push dword [ebp - 0x1c]
push eax
push ebx
call fcn.0050e790
add esp, 0xc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x51a62c
push dword [ebp - 0x1c]
push 0x33
push esi
call fcn.0052dc20
push dword [ebp - 0x4c]
mov esi, eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push dword [ebp - 4]
call fcn.0052dce0
push esi
mov esi, dword [ebp - 4]
push esi
call fcn.00537590
add esp, 0x28
push dword [ebp - 0x1c]
push 0xf
push esi
call fcn.0052dc20
add esp, 0xc
jmp 0x51a688
mov eax, dword [esi + 0x6c]
add eax, 2
push eax
push dword [ebp - 0x1c]
push 0x32
push esi
call fcn.0052dc80
add esp, 0x10
push dword [ebp - 0x1c]
push 0xf
push esi
call fcn.0052dc20
add esp, 0xc
jmp 0x51a688
test ecx, ecx
jne 0x51a678
cmp byte [ebp - 0x90], cl
jne 0x51a678
push dword [ebp - 0x4c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x78
push esi
call fcn.0052dce0
add esp, 0x14
mov esi, 1
jmp 0x51a68a
push dword [ebp - 0x1c]
push 0
push 0x48
push esi
call fcn.0052dc80
add esp, 0x10
xor esi, esi
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x51a6a5
push dword [ebp - 0x1c]
push eax
push 0x97
push dword [ebx + 8]
call fcn.0052dc80
add esp, 0x10
mov ecx, dword [ebp - 8]
test byte [ecx + 0x24], 0x60
je 0x51a6be
push ecx
push dword [ebp - 0x28]
push ebx
call fcn.0050a5b0
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp dword [ecx + 0x38], 0
je 0x51a7bd
mov esi, dword [ecx + 0x40]
test esi, esi
je 0x51a6dd
mov eax, dword [ebp - 0x30]
cmp dword [esi], eax
je 0x51a6dd
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x51a6d2
push ecx
push ebx
call fcn.0053b890
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 0x51a713
push dword [ebp - 0x38]
push edi
push 1
mov edi, ecx
push 0xa
push edi
call fcn.004ef800
add esp, 0x14
mov edx, eax
jmp 0x51a74a
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 0x51a787
test edx, edx
jns 0x51a75a
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 0x51a779
push 0xfffffffffffffff4
push esi
push eax
push edi
call fcn.005473e0
add esp, 0x10
jmp 0x51a787
test esi, esi
je 0x51a787
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf4
inc dword [esi + 0xc]
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x51a7aa
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 0x51a83d
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.005151d0
push 0
push 0
push edi
push 0
push dword [ebp - 8]
push ebx
call fcn.00514180
mov edi, dword [ebp - 4]
add esp, 0x4c
cmp dword [ebp + 8], 0
je 0x51a816
cmp dword [edi + 0xd8], 0
je 0x51a816
xor eax, eax
jmp 0x51a81b
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.0050a3a0
add esp, 0x24
jmp 0x51a840
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x51a858
push 1
push eax
push 0x52
push edi
call fcn.0052dc80
add esp, 0x10
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x51a883
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.00509410
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 0x51a8a0
push edx
push edi
push ecx
call fcn.004fd400
add esp, 0xc
jmp 0x51a8a9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp byte [ebp - 0xd], 0
je 0x51a908
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x24]
push esi
push 5
push edi
call fcn.0052dc80
mov eax, dword [edi]
add esp, 0x10
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x51a8e2
mov eax, 0x5b6fa4
push esi
push 0x74
push edi
mov dword [eax + 8], edx
call fcn.0052dc20
add esp, 0xc
jmp 0x51a943
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.0052dc20
add esp, 0xc
jmp 0x51a943
cmp dword [ebp - 0xc], 0
je 0x51a943
push dword [ebp - 0x58]
push edi
call fcn.00537160
mov eax, dword [edi]
add esp, 8
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x51a92c
mov eax, 0x5b6fa4
jmp 0x51a940
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 0x51a95e
cmp dword [ebx + 0x78], 0
jne 0x51a95e
cmp dword [ebx + 0x70], 0
je 0x51a95e
push ebx
call fcn.004db950
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x519b44
push 1
push eax
push 0x50
push edi
call fcn.0052dc80
push 1
push edi
call fcn.0053a200
mov eax, dword [edi]
add esp, 0x18
cmp byte [eax + 0x51], 0
jne 0x519b44
mov esi, dword [edi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x51a9a2
cmp dword [esi + 0x18], 0
je 0x51a9ab
push esi
call fcn.00548720
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 0x519b44
mov edi, dword [ebp + 0x10]
jmp 0x519b4a