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

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
or eax, 0xffffffff
push esi
mov dword [esp + 0x34], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x7c], 0
push edi
mov edi, dword [ebp]
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x58], eax
mov byte [esp + 0x1a], al
mov byte [esp + 0x23], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x5c], edi
cmp dword [ebp + 0x24], eax
jne 0x519697
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x5186f7
test dword [ebx + 4], 0x200
je 0x5186f7
cmp dword [ebx + 0x34], eax
jne 0x5186f7
mov eax, dword [ebx + 0x1c]
push 1
push ebx
push edi
mov dword [esp + 0x54], eax
mov dword [ebx + 0x1c], esi
call fcn.004c3280
add esp, 0xc
mov dword [esp + 0x14], esi
push dword [esp + 0xac]
push ebp
call fcn.00528f20
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x5196aa
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffff8000
mov dword [esp + 0x28], ebx
test ecx, ecx
je 0x518741
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
mov dword [esp + 0x28], ebx
cmp dword [eax], ecx
je 0x518741
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x518735
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 0x10]
mov ecx, ebx
add ecx, ecx
push dword [eax + ecx*8]
push 0
push dword [esi]
push 0x12
push ebp
call fcn.004fb7f0
add esp, 0x14
test eax, eax
jne 0x518aa9
mov eax, dword [esi + 0x1c]
shr eax, 7
and eax, 0xffffff01
mov dword [esp + 0x50], eax
lea eax, [esp + 0x78]
push eax
push 0
push 0x7f
push esi
push ebp
call fcn.0052a480
mov edi, eax
xor eax, eax
cmp byte [esi + 0x2b], 2
push esi
sete al
mov dword [esp + 0x94], edi
push ebp
mov dword [esp + 0x8c], eax
call fcn.0053a2d0
add esp, 0x1c
test eax, eax
jne 0x518aa9
push dword [esp + 0x78]
push esi
push ebp
call fcn.00519a60
add esp, 0xc
test eax, eax
jne 0x518aa9
push ebp
call fcn.005175d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x518aa9
cmp byte [ebp + 0x12], 0
jne 0x5187e4
or dword [eax + 0xa0], 0x10
cmp dword [esp + 0x14], 0
jne 0x5187f3
test edi, edi
jne 0x5187f3
xor eax, eax
jmp 0x5187f8
mov eax, 1
push ebx
push eax
push ebp
call fcn.004fc2b0
add esp, 0xc
cmp dword [esp + 0xb4], 0
jne 0x518834
mov eax, dword [esp + 0x14]
test eax, eax
je 0x518834
test edi, edi
jne 0x518834
push ebx
push dword [esp + 0xbc]
push eax
push esi
push ebp
call fcn.005579d0
add esp, 0x14
test eax, eax
jne 0x5195cf
push esi
push ebx
push ebp
call fcn.004bde70
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
mov dword [esp + 0x64], eax
movsx eax, word [esi + 0x22]
inc eax
lea edi, [ecx + 1]
add eax, ecx
mov edx, edi
mov dword [ebp + 0x2c], eax
cmp byte [esi + 0x2b], 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], edx
jne 0x51886e
lea edx, [edi + 1]
inc eax
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x2c], eax
test dword [esi + 0x1c], 0x440
lea eax, [edx + 1]
mov edx, dword [esp + 0xb4]
sete byte [esp + 0x1b]
mov dword [esp + 0x44], eax
test edx, edx
je 0x5189b2
xor ecx, ecx
cmp dword [edx + 4], ecx
jle 0x5188b0
jmp 0x5188a0
mov eax, dword [edx]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edx + 4]
jl 0x5188a0
xor edi, edi
mov dword [esp + 0x30], edi
cmp dword [edx + 4], edi
jle 0x5189b2
mov edx, dword [esp + 0x1c]
movsx ebx, word [edx + 0x22]
xor esi, esi
test ebx, ebx
jle 0x51893a
mov eax, dword [esp + 0xb4]
mov eax, dword [eax]
lea eax, [eax + edi*8]
mov edi, dword [edx + 4]
mov dword [esp + 0x4c], eax
push dword [edi]
push dword [eax]
call fcn.00529880
add esp, 8
test eax, eax
mov eax, dword [esp + 0x4c]
je 0x518906
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x5188e0
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
jmp 0x51893a
mov edi, dword [esp + 0x30]
cmp edi, esi
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], esi
setne al
dec al
and byte [esp + 0x1b], al
movsx eax, word [edx + 0x20]
cmp esi, eax
jne 0x518928
mov dword [esp + 0x38], edi
mov eax, dword [edx + 4]
mov ecx, esi
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 0x60
jne 0x518a96
movsx eax, word [edx + 0x22]
mov ebx, dword [esp + 0xb4]
cmp esi, eax
jl 0x5189a0
mov eax, dword [ebx]
push str._ROWID_
mov esi, dword [eax + edi*8]
push esi
call fcn.00529880
add esp, 8
test eax, eax
je 0x518988
push str.ROWID
push esi
call fcn.00529880
add esp, 8
test eax, eax
je 0x518988
push 0x589af4
push esi
call fcn.00529880
add esp, 8
test eax, eax
jne 0x518ab0
cmp byte [esp + 0x50], 0
jne 0x518ab0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov byte [esp + 0x1b], 0
inc edi
mov dword [esp + 0x30], edi
cmp edi, dword [ebx + 4]
jl 0x5188c3
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x14], 0
je 0x518b85
mov eax, dword [esp + 0x10]
inc dword [ebp + 0x2c]
mov edi, dword [ebp + 0x2c]
mov esi, dword [eax + 0x74]
inc esi
push esi
push 0
push edi
push 0xd
push eax
call fcn.0052e1e0
movzx eax, byte [esp + 0x2f]
neg eax
mov byte [esp + 0x98], 0xd
mov dword [esp + 0x9c], edi
sbb eax, eax
mov dword [esp + 0xa0], 0
and eax, dword [esp + 0x58]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xac], 0
movsx eax, word [eax + 0x22]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x2c]
push ebp
call fcn.00525570
mov ecx, dword [esp + 0xb0]
add esp, 0x20
mov dword [esp + 0x6c], ecx
test eax, eax
jne 0x518aa9
cmp dword [ebp + 0x24], eax
jne 0x518aa9
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.0052f290
lea eax, [esi - 1]
push eax
push edi
call fcn.00536c00
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [esp + 0x7c], 0
mov eax, dword [eax + 0x1c]
mov esi, dword [eax]
mov dword [esp + 0x30], esi
jne 0x518ad9
push dword [esp + 0x1c]
push ebx
push ebp
call fcn.004f25a0
add esp, 0xc
test eax, eax
jne 0x518ad9
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
jmp 0x518c01
add esi, esi
push dword [eax + esi*8]
push str.cannot_INSERT_into_generated_column___s_
push ebp
call fcn.00506fd0
add esp, 0xc
xor esi, esi
jmp 0x519609
mov eax, dword [ebx]
push dword [eax + edi*8]
mov eax, dword [esp + 0xb0]
add eax, 8
push eax
push str.table__S_has_no_column_named__s
push ebp
call fcn.00506fd0
add esp, 0x10
mov byte [ebp + 0x11], 1
xor esi, esi
jmp 0x519610
mov edx, dword [ebp + 0x28]
push ebp
mov byte [esp + 0x1e], 1
mov dword [esp + 0x40], edx
lea eax, [edx + 1]
mov dword [ebp + 0x28], eax
call fcn.00516bc0
push ebp
mov edi, eax
call fcn.00516bc0
push esi
mov esi, dword [esp + 0x1c]
mov ebx, eax
push edx
push 0x74
push esi
call fcn.0052e180
mov eax, dword [esp + 0xa0]
push eax
push 0xe
push esi
mov dword [esp + 0x48], eax
call fcn.0052e120
push edi
push dword [esp + 0x58]
mov esi, eax
push dword [esp + 0x98]
push 0x60
push dword [esp + 0x44]
call fcn.0052e1e0
push ebx
push dword [esp + 0x78]
push 0x7e
push dword [esp + 0x54]
call fcn.0052e180
add esp, 0x48
push ebx
push edi
push dword [esp + 0x44]
push 0x7f
push dword [esp + 0x20]
call fcn.0052e1e0
push esi
push dword [esp + 0x28]
call fcn.00536510
push esi
push dword [esp + 0x30]
call fcn.00536c00
push edi
push ebp
call fcn.00523860
push ebx
push ebp
call fcn.00523860
mov esi, dword [esp + 0x64]
add esp, 0x34
jmp 0x518bfd
xor eax, eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], ebp
test eax, eax
je 0x518bf7
mov esi, dword [eax]
push eax
lea eax, [esp + 0x88]
mov dword [esp + 0x34], esi
push eax
call fcn.00523d90
add esp, 8
test eax, eax
jne 0x518aa9
jmp 0x518bfd
xor esi, esi
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb4]
test ebx, ebx
jne 0x518cbb
mov ebx, dword [esp + 0x1c]
test esi, esi
jle 0x518cdd
movsx eax, word [ebx + 0x20]
mov dword [esp + 0x38], eax
test eax, eax
js 0x518c5a
test byte [ebx + 0x1c], 0x60
je 0x518c5a
lea edx, [eax - 1]
test edx, edx
js 0x518c5a
mov eax, dword [ebx + 4]
mov ecx, edx
mov edi, dword [esp + 0x38]
add eax, 0xe
shl ecx, 4
add eax, ecx
test byte [eax], 0x60
je 0x518c4c
dec edi
sub eax, 0x10
dec edx
jns 0x518c46
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x10]
test byte [ebx + 0x1c], 0x62
je 0x518c8a
movsx ecx, word [ebx + 0x22]
test ecx, ecx
jle 0x518c8a
mov eax, dword [ebx + 4]
add eax, 0xe
xor ebp, ebp
test byte [eax], 0x62
je 0x518c76
inc ebp
add eax, 0x10
dec ecx
jne 0x518c70
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0xa8]
movsx eax, word [ebx + 0x22]
sub eax, dword [esp + 0x80]
cmp esi, eax
je 0x518cdd
push esi
push eax
mov eax, dword [esp + 0xb4]
add eax, 8
push eax
push str.table__S_has__d_columns_but__d_values_were_supplied
push ebp
call fcn.00506fd0
add esp, 0x14
xor esi, esi
jmp 0x519609
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x518cd9
push eax
push esi
push str._d_values_for__d_columns
push ebp
call fcn.00506fd0
add esp, 0x10
xor esi, esi
jmp 0x519610
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov ecx, dword [ecx + 0x24]
and ecx, 1
or eax, ecx
je 0x518d1d
cmp byte [ebp + 0x12], 0
jne 0x518d1d
cmp dword [ebp + 0x78], 0
jne 0x518d1d
cmp byte [ebp + 0x95], 0
jne 0x518d1d
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
push eax
push 0
push 0x47
push edi
mov dword [esp + 0x84], eax
call fcn.0052e180
add esp, 0x10
cmp dword [esp + 0x70], 0
jne 0x518d9b
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x70
push ebx
push ebp
call fcn.0051c2d0
mov esi, eax
push 0
lea eax, [esi*4 + 8]
push eax
push dword [esp + 0x84]
call fcn.00504c90
add esp, 0x2c
mov dword [esp + 0x34], eax
test eax, eax
je 0x519605
mov edx, dword [ebx + 8]
xor ecx, ecx
test esi, esi
jle 0x518d8c
mov edi, eax
nop
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [edi + ecx*4], eax
inc ecx
movzx eax, word [edx + 0x34]
add dword [ebp + 0x2c], eax
mov edx, dword [edx + 0x14]
cmp ecx, esi
jl 0x518d70
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esi + ecx*4], eax
jmp 0x518d9d
xor esi, esi
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x518e52
mov al, byte [ebx + 0x2b]
cmp al, 1
jne 0x518dc8
push dword [ebx]
push str.UPSERT_not_implemented_for_virtual_table___s_
push ebp
call fcn.00506fd0
add esp, 0xc
jmp 0x519609
cmp al, 2
jne 0x518ddf
push str.cannot_UPSERT_a_view
push ebp
call fcn.00506fd0
add esp, 8
jmp 0x519609
push dword [ecx]
push ebp
call fcn.00517680
add esp, 8
test eax, eax
jne 0x519609
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0x44]
mov dword [edx + 0x34], ecx
jmp 0x518e10
cmp dword [esi], 0
mov ebx, dword [esp + 0x60]
mov dword [esi + 0x2c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
je 0x518e4b
push esi
push edx
push ebp
call fcn.0052d1d0
add esp, 0xc
test eax, eax
jne 0x519605
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xac]
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x518e10
cmp byte [esp + 0x1a], 0
je 0x518e75
push dword [esp + 0x3c]
push 0x26
push edi
call fcn.0052e120
mov dword [esp + 0x74], eax
add esp, 0xc
mov eax, dword [edi + 0x74]
mov dword [esp + 0x58], eax
jmp 0x518eb3
cmp dword [esp + 0x14], 0
je 0x518eb3
push dword [esp + 0x24]
push 0xe
push edi
call fcn.0052e120
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], edx
mov dword [esp + 0x68], edx
test eax, eax
js 0x518eb3
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
add ecx, eax
push ecx
push 0x4f
push edi
call fcn.0052e180
add esp, 0x10
mov esi, dword [esp + 0x44]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x24], ecx
cmp ax, word [ebx + 0x22]
jge 0x5190b7
xor edx, edx
mov dword [esp + 0x28], edx
movsx eax, word [ebx + 0x20]
cmp ecx, eax
jne 0x518ef8
push esi
push 0x4b
push edi
call fcn.0052e120
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x28]
jmp 0x51909e
mov edi, dword [ebx + 4]
add edi, edx
movzx eax, word [edi + 0xe]
test al, 0x62
je 0x518f60
inc dword [esp + 0x4c]
test al, 0x20
je 0x518f13
dec esi
jmp 0x51909a
test al, 0x40
je 0x518f3f
test byte [esp + 0x78], 1
je 0x51909a
mov edi, dword [esp + 0x10]
push esi
push 0x4b
push edi
call fcn.0052e120
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x28]
jmp 0x51909e
cmp dword [esp + 0xb4], 0
jne 0x518f6e
push esi
push edi
push ebx
call fcn.00502150
add esp, 8
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
cmp dword [esp + 0xb4], 0
je 0x519018
mov edx, dword [esp + 0xb4]
xor eax, eax
mov edx, dword [edx + 4]
test edx, edx
jle 0x518fa7
mov ecx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [ecx]
add ecx, 4
mov edi, edi
cmp dword [ecx], ebp
je 0x518f9c
inc eax
add ecx, 8
cmp eax, edx
jl 0x518f90
mov ebp, dword [esp + 0xa8]
mov ecx, dword [esp + 0x24]
cmp eax, edx
jl 0x519012
movzx eax, word [edi + 0xc]
test ax, ax
jne 0x518fc3
xor eax, eax
push esi
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
cmp byte [ebx + 0x2b], 0
je 0x518fd8
xor eax, eax
push esi
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x518fee
xor eax, eax
push esi
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
cmp dword [ecx], eax
jge 0x519001
xor eax, eax
push esi
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push esi
push eax
push ebp
call fcn.00507f20
jmp 0x51908f
mov edx, dword [esp + 0x28]
jmp 0x519029
cmp dword [esp + 0x30], 0
je 0x518f49
mov eax, ecx
sub eax, dword [esp + 0x4c]
cmp byte [esp + 0x1a], 0
je 0x51904f
mov edi, dword [esp + 0x10]
push esi
push eax
push dword [esp + 0x44]
push 0x5d
push edi
call fcn.0052e1e0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x28]
jmp 0x51909e
cmp dword [esp + 0x14], 0
je 0x51907d
mov edi, dword [esp + 0x6c]
cmp edi, dword [esp + 0x44]
je 0x51909a
push esi
add eax, edi
mov edi, dword [esp + 0x14]
push eax
push 0x50
push edi
call fcn.0052e180
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edx, dword [esp + 0x28]
jmp 0x51909e
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*4]
push esi
push dword [ecx + eax*4 + 8]
push ebp
call fcn.00507cb0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
movsx eax, word [ebx + 0x22]
inc ecx
add edx, 0x10
mov dword [esp + 0x24], ecx
inc esi
mov dword [esp + 0x28], edx
cmp ecx, eax
jl 0x518ed7
dec dword [ebp + 0x38]
test byte [esp + 0x78], 1
mov ebx, dword [ebp + 0x38]
je 0x51922b
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x22]
inc eax
push eax
push ebp
call fcn.00516b60
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x38]
push esi
test eax, eax
jns 0x5190f8
push 0xffffffffffffffff
push 0x47
push edi
call fcn.0052e180
add esp, 0x10
jmp 0x51917d
cmp byte [esp + 0x1e], 0
je 0x519111
push eax
push dword [esp + 0x44]
push 0x5d
push edi
call fcn.0052e1e0
add esp, 0x14
jmp 0x519125
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 8]
push ebp
call fcn.00507cb0
add esp, 0xc
push esi
push 0x33
push edi
call fcn.0052e120
push esi
push 0xffffffffffffffff
push 0x47
push dword [esp + 0x28]
mov edi, eax
call fcn.0052e180
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov edx, dword [eax + 0x74]
test edi, edi
jns 0x51914f
lea edi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x51915e
mov eax, 0x74c854
jmp 0x51916b
mov eax, dword [esp + 0x10]
lea ecx, [edi + edi*4]
mov eax, dword [eax + 0x70]
lea eax, [eax + ecx*4]
push esi
push 0xf
push dword [esp + 0x18]
mov dword [eax + 8], edx
call fcn.0052e120
add esp, 0xc
mov eax, dword [esp + 0x1c]
lea edi, [esi + 1]
movsx eax, word [eax + 0x24]
dec eax
push eax
push edi
push dword [esp + 0x4c]
push 0x4f
push dword [esp + 0x20]
call fcn.0052e1e0
mov eax, dword [esp + 0x30]
add esp, 0x14
test byte [eax + 0x1c], 0x60
je 0x5191b2
push eax
push edi
push ebp
call fcn.00502ad0
add esp, 0xc
cmp dword [esp + 0x70], 0
jne 0x5191cd
push edi
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x18]
call fcn.00529a00
add esp, 0xc
jmp 0x5191d1
mov edi, dword [esp + 0x1c]
movsx eax, word [edi + 0x22]
mov ecx, esi
push ebx
push dword [esp + 0xbc]
sub ecx, eax
dec ecx
push ecx
push edi
push 1
push 0
push 0x7f
push dword [esp + 0x98]
push ebp
call fcn.00501a40
movsx eax, word [edi + 0x22]
add esp, 0x24
inc eax
cmp eax, 1
jne 0x51921e
test esi, esi
je 0x51922f
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x51922f
movzx eax, al
mov dword [ebp + eax*4 + 0x98], esi
inc byte [ebp + 0x13]
jmp 0x51922f
cmp eax, dword [ebp + 0x1c]
jle 0x51922f
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], esi
jmp 0x51922f
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x70], 0
mov esi, dword [esp + 0x10]
jne 0x5194c3
cmp byte [edi + 0x2b], 1
jne 0x519255
push dword [esp + 0x54]
push 0
push 0x4a
push esi
call fcn.0052e180
add esp, 0x10
mov eax, dword [esp + 0x38]
test eax, eax
js 0x51933b
cmp byte [esp + 0x1a], 0
je 0x51927e
push dword [esp + 0x2c]
push eax
push dword [esp + 0x44]
push 0x5d
push esi
call fcn.0052e1e0
add esp, 0x14
jmp 0x5192ca
cmp dword [esp + 0x14], 0
jne 0x5192ca
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 8]
cmp byte [eax], 0x79
jne 0x5192bc
cmp byte [edi + 0x2b], 1
je 0x5192bc
push dword [esp + 0x64]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7e
push esi
call fcn.0052e1e0
add esp, 0x14
mov byte [esp + 0x23], 1
jmp 0x519377
push dword [esp + 0x2c]
push eax
push ebp
call fcn.00507cb0
add esp, 0xc
cmp byte [edi + 0x2b], 1
je 0x519314
push dword [esp + 0x2c]
push 0x33
push esi
call fcn.0052e120
push dword [esp + 0x70]
mov esi, eax
push dword [esp + 0x3c]
push dword [esp + 0x54]
push 0x7e
push dword [esp + 0x2c]
call fcn.0052e1e0
push esi
mov esi, dword [esp + 0x34]
push esi
call fcn.00536c00
add esp, 0x28
push dword [esp + 0x2c]
push 0xf
push esi
call fcn.0052e120
add esp, 0xc
jmp 0x519377
mov eax, dword [esi + 0x74]
add eax, 2
push eax
push dword [esp + 0x30]
push 0x32
push esi
call fcn.0052e180
add esp, 0x10
push dword [esp + 0x2c]
push 0xf
push esi
call fcn.0052e120
add esp, 0xc
jmp 0x519377
cmp byte [edi + 0x2b], 1
je 0x519366
cmp byte [esp + 0x50], 0
jne 0x519366
push dword [esp + 0x64]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7e
push esi
call fcn.0052e1e0
add esp, 0x14
mov byte [esp + 0x23], 1
jmp 0x519377
push dword [esp + 0x2c]
push 0
push 0x4a
push esi
call fcn.0052e180
add esp, 0x10
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x519394
push dword [esp + 0x2c]
push eax
push 0x9e
push dword [ebp + 8]
call fcn.0052e180
add esp, 0x10
test byte [edi + 0x1c], 0x60
je 0x5193a8
push edi
push dword [esp + 0x48]
push ebp
call fcn.00502ad0
add esp, 0xc
cmp byte [edi + 0x2b], 1
jne 0x519429
mov esi, dword [edi + 0x34]
test esi, esi
je 0x5193cb
mov eax, dword [esp + 0x5c]
lea esp, [esp]
cmp dword [esi], eax
je 0x5193cb
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x5193c0
push edi
push ebp
call fcn.0053afb0
movsx eax, word [edi + 0x22]
push 0xfffffffffffffff4
push esi
push dword [esp + 0x64]
mov esi, dword [esp + 0x24]
add eax, 2
push eax
push 1
push 0xa
push esi
call fcn.0052e240
mov eax, dword [esp + 0xdc]
add esp, 0x24
mov edx, 2
cmp eax, 0xb
je 0x519405
mov edx, eax
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x519417
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x519420
mov eax, ebp
mov byte [eax + 0x15], 1
jmp 0x5194c3
push dword [esp + 0xbc]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push 0
push eax
mov eax, dword [esp + 0x44]
test eax, eax
push ebx
push dword [esp + 0xc8]
setns al
movzx eax, al
push eax
push 0
push dword [esp + 0x70]
push dword [esp + 0x80]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push edi
push ebp
call fcn.00513ca0
push 0
push 0
push dword [esp + 0x90]
push 0
push edi
push ebp
call fcn.0050dc90
add esp, 0x4c
cmp dword [esp + 0x50], 0
je 0x51949b
cmp dword [esi + 0xe8], 0
je 0x51949b
xor eax, eax
jmp 0x5194a0
mov eax, 1
push eax
movzx eax, byte [esp + 0x27]
push eax
push 0
push dword [esp + 0x40]
push dword [esp + 0x64]
push dword [esp + 0x74]
push dword [esp + 0x58]
push edi
push ebp
call fcn.005028e0
add esp, 0x24
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5194d9
push 1
push eax
push 0x55
push esi
call fcn.0052e180
add esp, 0x10
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x519508
movsx eax, word [edi + 0x22]
mov ecx, dword [esp + 0x44]
push ebx
push dword [esp + 0xbc]
sub ecx, eax
sub ecx, 2
push ecx
push edi
push 2
push 0
push 0x7f
push edx
push ebp
call fcn.00501a40
add esp, 0x24
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x519522
push ebx
push esi
push ecx
call fcn.004f4d20
add esp, 0xc
jmp 0x51952b
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebx*4], eax
cmp byte [esp + 0x1a], 0
je 0x51958c
push dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
push ebx
push 5
push esi
call fcn.0052e180
mov ecx, dword [esp + 0x78]
add esp, 0x10
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x519554
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x519572
mov eax, 0x74c854
push ebx
push 0x79
push esi
mov dword [eax + 8], edx
call fcn.0052e120
add esp, 0xc
jmp 0x5195d3
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
push ebx
push 0x79
push esi
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
call fcn.0052e120
add esp, 0xc
jmp 0x5195d3
cmp dword [esp + 0x14], 0
je 0x5195d3
push dword [esp + 0x58]
push esi
call fcn.00536510
mov ecx, dword [esp + 0x70]
add esp, 8
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x5195ae
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5195c0
mov eax, 0x74c854
mov dword [eax + 8], edx
jmp 0x5195d3
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x5195d3
mov esi, dword [esp + 0x10]
cmp byte [ebp + 0x12], 0
jne 0x5195ee
cmp dword [ebp + 0x78], 0
jne 0x5195ee
cmp dword [ebp + 0x70], 0
je 0x5195ee
push ebp
call fcn.004bdf70
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x519605
push str.rows_inserted
push eax
push esi
call fcn.005011d0
add esp, 0xc
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0xb4]
mov edi, dword [esp + 0x14]
push dword [esp + 0xac]
mov ebp, dword [esp + 0x60]
push ebp
call fcn.00528860
mov eax, dword [esp + 0x50]
add esp, 8
test eax, eax
je 0x51963a
push eax
push ebp
call fcn.004cc370
add esp, 8
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x51964f
push eax
push ebp
call fcn.00547190
add esp, 8
test edi, edi
je 0x51965f
push 1
push edi
push ebp
call fcn.004c3280
add esp, 0xc
push ebx
push ebp
call fcn.00517ad0
add esp, 8
test esi, esi
je 0x51970f
test ebp, ebp
je 0x519706
cmp dword [ebp + 0x210], 0
je 0x5196bc
push esi
push ebp
call fcn.004e8dc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
jmp 0x519614
mov edi, dword [esp + 0x14]
xor esi, esi
mov ebx, dword [esp + 0xb4]
jmp 0x519614
cmp esi, dword [ebp + 0x164]
jae 0x519706
cmp esi, dword [ebp + 0x15c]
jb 0x5196e5
mov eax, dword [ebp + 0x158]
pop edi
mov dword [esi], eax
mov dword [ebp + 0x158], esi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp esi, dword [ebp + 0x160]
jb 0x519706
mov eax, dword [ebp + 0x150]
pop edi
mov dword [esi], eax
mov dword [ebp + 0x150], esi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push esi
call fcn.004acf00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret