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

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xac]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
xor esi, esi
mov dword [esp + 0x3c], 0
push edi
mov edi, dword [ebp]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], edi
cmp dword [ebp + 0x24], eax
jne 0x514364
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x5130df
test dword [ebx + 4], 0x200
je 0x5130df
cmp dword [ebx + 0x34], eax
jne 0x5130df
mov eax, dword [ebx + 0x1c]
push 1
push ebx
push edi
mov dword [esp + 0x5c], eax
mov dword [ebx + 0x1c], esi
call fcn.004cce60
add esp, 0xc
mov dword [esp + 0x20], esi
push dword [esp + 0xb4]
push ebp
call fcn.00525a60
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x51344b
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffff8000
mov dword [esp + 0x98], ebx
test ecx, ecx
je 0x513132
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
mov dword [esp + 0x98], ebx
cmp dword [eax], ecx
je 0x513132
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x513123
mov dword [esp + 0x98], 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.004f9a50
add esp, 0x14
test eax, eax
jne 0x51344b
mov eax, dword [esi + 0x1c]
shr eax, 7
and eax, 0xffffff01
cmp dword [esi + 0x38], 0
mov dword [esp + 0x60], eax
jne 0x51317b
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x513184
cmp dword [eax + 0x30], 0
je 0x513184
cmp byte [ebp + 0x9d], 0
je 0x513193
mov dword [esp + 0x9c], 0
xor edi, edi
jmp 0x5131b9
lea eax, [esp + 0xa8]
push eax
push 0
push 0x7f
push esi
push ebp
call fcn.00543fe0
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x9c], eax
mov al, byte [esi + 0x2b]
mov dword [esp + 0x48], edi
mov byte [esp + 0x27], al
cmp al, 1
je 0x5131cf
cmp word [esi + 0x22], 0
jg 0x5131e1
push esi
push ebp
call fcn.00549db0
add esp, 8
test eax, eax
jne 0x51344b
push edi
push esi
push ebp
call fcn.00514580
add esp, 0xc
test eax, eax
jne 0x51344b
push ebp
call fcn.00511cb0
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
je 0x51344b
cmp byte [ebp + 0x12], 0
jne 0x513218
or dword [edi + 0x98], 0x10
cmp dword [esp + 0x20], 0
jne 0x51322a
cmp dword [esp + 0x48], 0
jne 0x51322a
xor eax, eax
jmp 0x51322f
mov eax, 1
push ebx
push eax
push ebp
call fcn.004fa500
add esp, 0xc
cmp dword [esp + 0xbc], 0
jne 0x51326e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51326e
cmp dword [esp + 0x48], 0
jne 0x51326e
push ebx
push dword [esp + 0xc4]
push eax
push esi
push ebp
call fcn.00557040
add esp, 0x14
test eax, eax
jne 0x5142e1
push esi
push ebx
push ebp
call fcn.004c7510
mov ecx, dword [ebp + 0x2c]
lea esi, [ebp + 0x2c]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x68], eax
lea eax, [ecx + 1]
mov ebx, eax
mov dword [esp + 0x58], eax
movsx eax, word [edx + 0x22]
inc eax
mov dword [esp + 0x2c], ebx
add eax, ecx
mov dword [esi], eax
cmp byte [edx + 0x2b], 1
jne 0x5132ad
lea ebx, [ecx + 2]
inc eax
mov dword [esp + 0x2c], ebx
mov dword [esi], eax
test dword [edx + 0x1c], 0x440
lea eax, [ebx + 1]
mov edx, dword [esp + 0xbc]
sete bl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ebx
test edx, edx
je 0x51349d
mov byte [edx + 4], 1
xor ecx, ecx
mov edx, dword [edx]
test edx, edx
jle 0x513303
mov esi, dword [esp + 0xbc]
lea eax, [esi + 0xc]
nop word [eax + eax]
mov dword [eax], 0xffffffff
lea eax, [eax + 8]
mov edx, dword [esi]
inc ecx
cmp ecx, edx
jl 0x5132f0
lea esi, [ebp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x3c], ebp
test edx, edx
jle 0x513496
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x10]
add eax, 8
mov dword [esp + 0xa4], eax
mov edi, eax
mov dword [esp + 0x54], eax
nop dword [eax]
movsx ebx, word [edx + 0x22]
xor esi, esi
test ebx, ebx
jle 0x513367
mov ebp, dword [eax + ebp*8]
mov edi, dword [edx + 4]
push dword [edi]
push ebp
call fcn.00526840
add esp, 8
test eax, eax
je 0x5133ef
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x513340
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
movsx eax, word [edx + 0x22]
cmp esi, eax
jl 0x5133c8
mov esi, dword [edi]
push str._ROWID_
push esi
call fcn.00526840
add esp, 8
test eax, eax
je 0x5133af
push str.ROWID
push esi
call fcn.00526840
add esp, 8
test eax, eax
je 0x5133af
push 0x6ed7c8
push esi
call fcn.00526840
add esp, 8
test eax, eax
jne 0x513456
cmp byte [esp + 0x60], 0
jne 0x513456
mov edx, dword [esp + 0x10]
xor bl, bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0xbc]
inc ebp
add edi, 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x54], edi
cmp ebp, dword [eax]
jge 0x513486
mov eax, dword [esp + 0xa4]
jmp 0x513330
mov edi, dword [esp + 0x54]
xor eax, eax
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
cmp ebp, esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [edi + 4], esi
movzx ebx, bl
cmovne ebx, eax
movsx eax, word [edx + 0x20]
cmp esi, eax
mov dword [esp + 0x28], ebx
mov eax, dword [edx + 4]
cmove ecx, ebp
mov dword [esp + 0x30], ecx
mov ecx, esi
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 0x60
je 0x51336b
push dword [eax + ecx*8]
mov esi, dword [esp + 0xb4]
push str.cannot_INSERT_into_generated_column___s_
push esi
call fcn.00505000
add esp, 0xc
mov ebx, dword [esp + 0x20]
xor esi, esi
jmp 0x514364
mov eax, dword [esp + 0xb4]
push esi
mov esi, dword [esp + 0xb4]
add eax, 8
push eax
push str.table__S_has_no_column_named__s
push esi
call fcn.00505000
mov ebx, dword [esp + 0x30]
add esp, 0x10
mov byte [esi + 0x11], 1
xor esi, esi
jmp 0x514364
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0x14]
lea esi, [ebp + 0x2c]
jmp 0x51349d
mov ebp, dword [esp + 0xb0]
cmp dword [esp + 0x20], 0
je 0x51371a
inc dword [esi]
mov edi, dword [edi + 0x6c]
mov esi, dword [esi]
lea eax, [edi + 1]
push eax
push 0
push esi
push 0xb
push dword [esp + 0x24]
call fcn.0052b470
mov edx, dword [esp + 0x24]
xor eax, eax
test bl, bl
mov byte [esp + 0x8c], 0xd
mov ebx, dword [esp + 0x34]
cmovne eax, dword [esp + 0x60]
mov dword [esp + 0x98], eax
movsx eax, word [edx + 0x22]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x8c]
push eax
push ebx
push ebp
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], 0
mov dword [esp + 0xac], 0
call fcn.005218a0
mov ecx, dword [esp + 0xa4]
add esp, 0x20
mov dword [esp + 0x64], ecx
test eax, eax
jne 0x51344f
cmp dword [ebp + 0x24], eax
jne 0x51344f
push esi
push dword [esp + 0x18]
call fcn.0052bfb0
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.00535820
mov eax, dword [ebx + 0x1c]
add esp, 0x10
cmp dword [esp + 0x48], 0
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jne 0x513661
mov ecx, dword [ebp + 8]
mov dword [esp + 0x54], ecx
test ecx, ecx
jne 0x51358f
cmp dword [ebp + 0x7c], ecx
jne 0x513580
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x513580
mov byte [ebp + 0x17], 1
push ebp
call fcn.0052ba20
add esp, 4
mov dword [esp + 0x54], eax
mov ecx, eax
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0xa4], eax
cmp byte [edx + 0x2b], 1
jne 0x5135c0
mov esi, dword [edx + 0x34]
test esi, esi
je 0x5135c2
mov eax, dword [ebp]
nop dword [eax]
cmp dword [esi], eax
je 0x5135bb
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x5135b0
mov eax, dword [ecx + 0x6c]
jmp 0x5135c2
xor esi, esi
mov ebx, 1
cmp eax, ebx
jle 0x513650
mov eax, dword [ecx]
lea edi, [ebx + 0x13]
mov al, byte [eax + 0x57]
mov byte [esp + 0x47], al
nop dword [eax + eax]
test al, al
je 0x5135eb
mov ecx, 0x7937a8
jmp 0x5135f0
mov ecx, dword [ecx + 0x68]
add ecx, edi
cmp byte [ecx], 0x70
jne 0x513620
mov eax, dword [esp + 0x98]
cmp dword [ecx + 0xc], eax
jne 0x51362a
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 8]
cmp edx, dword [eax + 0x14]
je 0x513661
mov eax, dword [eax + 8]
test eax, eax
je 0x51362a
cmp edx, dword [eax + 0x2c]
je 0x513661
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x513614
cmp byte [ecx], 0xad
jne 0x51362a
cmp dword [ecx + 0x10], esi
je 0x513661
mov ecx, dword [esp + 0x54]
inc ebx
mov al, byte [esp + 0x47]
add edi, 0x14
cmp ebx, dword [esp + 0xa4]
jl 0x5135e0
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
jmp 0x513764
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
jmp 0x51376c
mov edx, dword [ebp + 0x28]
push ebp
mov byte [esp + 0x1f], 1
mov dword [esp + 0x38], edx
lea eax, [edx + 1]
mov dword [ebp + 0x28], eax
call fcn.005112b0
push ebp
mov edi, eax
call fcn.005112b0
push dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov ebx, eax
push edx
push 0x76
push esi
call fcn.0052b410
mov eax, dword [esp + 0x94]
push eax
push 0xc
push esi
mov dword [esp + 0x40], eax
call fcn.0052b3b0
push edi
push dword [esp + 0x50]
mov esi, eax
push dword [esp + 0x90]
push 0x61
push dword [esp + 0x48]
call fcn.0052b470
push ebx
push dword [esp + 0x70]
push 0x7f
push dword [esp + 0x58]
call fcn.0052b410
add esp, 0x48
push ebx
push edi
push dword [esp + 0x3c]
push 0x80
push dword [esp + 0x24]
call fcn.0052b470
push esi
push dword [esp + 0x2c]
call fcn.00535260
push esi
push dword [esp + 0x34]
call fcn.00535820
push edi
push ebp
call fcn.0051fa50
push ebx
push ebp
call fcn.0051fa50
mov ebx, dword [esp + 0xb0]
add esp, 0x34
mov esi, dword [esp + 0x28]
jmp 0x513764
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov dword [esp + 0x34], 0xffffffff
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x78], ebp
movups xmmword [esp + 0x88], xmm0
test eax, eax
je 0x51375c
mov esi, dword [eax]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x2c], esi
push eax
call fcn.00520000
add esp, 8
test eax, eax
jne 0x51344b
jmp 0x513762
xor esi, esi
mov dword [esp + 0x28], esi
xor ebx, ebx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x51383c
test esi, esi
jle 0x513838
mov esi, dword [esp + 0x10]
movsx eax, word [esi + 0x20]
mov dword [esp + 0x30], eax
test eax, eax
js 0x5137cc
test byte [esi + 0x1c], 0x60
je 0x5137cc
lea edx, [eax - 1]
test edx, edx
js 0x5137cc
mov eax, dword [esi + 4]
mov ecx, edx
mov ebx, dword [esp + 0x30]
add eax, 0xe
shl ecx, 4
add ecx, eax
test byte [ecx], 0x60
lea eax, [ebx - 1]
lea ecx, [ecx - 0x10]
cmove eax, ebx
sub edx, 1
mov ebx, eax
jns 0x5137b1
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x1c]
test byte [esi + 0x1c], 0x62
je 0x5137f7
movsx edx, word [esi + 0x22]
test edx, edx
jle 0x5137f7
mov ecx, dword [esi + 4]
add ecx, 0xe
xor esi, esi
test byte [ecx], 0x62
lea eax, [esi + 1]
lea ecx, [ecx + 0x10]
cmove eax, esi
mov esi, eax
sub edx, 1
jne 0x5137e2
jmp 0x5137f9
xor esi, esi
mov edx, dword [esp + 0x10]
movsx eax, word [edx + 0x22]
sub eax, esi
mov esi, dword [esp + 0x28]
cmp esi, eax
je 0x513831
push esi
push eax
mov eax, dword [esp + 0xbc]
add eax, 8
push eax
push str.table__S_has__d_columns_but__d_values_were_supplied
push ebp
call fcn.00505000
mov ebx, dword [esp + 0x34]
add esp, 0x14
xor esi, esi
jmp 0x514364
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x51385d
mov eax, dword [eax]
cmp esi, eax
je 0x51385d
push eax
push esi
push str._d_values_for__d_columns
push ebp
call fcn.00505000
mov ebx, dword [esp + 0x30]
add esp, 0x10
xor esi, esi
jmp 0x514364
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov ecx, dword [ecx + 0x24]
and ecx, 1
or eax, ecx
je 0x5138a5
cmp byte [ebp + 0x12], 0
jne 0x5138a5
cmp dword [ebp + 0x80], 0
jne 0x5138a5
cmp byte [ebp + 0x9b], 0
jne 0x5138a5
mov eax, dword [ebp + 0x2c]
inc eax
push eax
push 0
push 0x47
push edi
mov dword [esp + 0xb0], eax
mov dword [ebp + 0x2c], eax
call fcn.0052b410
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0x27], 2
je 0x51392c
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x71
push edx
push ebp
call fcn.005167d0
mov esi, eax
push 0
lea eax, [esi*4 + 8]
push eax
push dword [esp + 0x84]
call fcn.00503030
add esp, 0x2c
mov dword [esp + 0x38], eax
test eax, eax
je 0x51435c
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [edx + 8]
test esi, esi
jle 0x51391c
mov ebx, eax
nop
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [ebx + ecx*4], eax
inc ecx
movzx eax, word [edx + 0x34]
add dword [ebp + 0x2c], eax
mov edx, dword [edx + 0x14]
cmp ecx, esi
jl 0x513900
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x2c]
mov esi, dword [esp + 0x38]
inc eax
mov dword [ebp + 0x2c], eax
mov dword [esi + ecx*4], eax
jmp 0x51392e
xor esi, esi
mov edx, dword [esp + 0xc4]
test edx, edx
je 0x5139e6
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x2b]
cmp al, 1
jne 0x513961
push dword [ecx]
push str.UPSERT_not_implemented_for_virtual_table___s_
push ebp
call fcn.00505000
add esp, 0xc
mov ebx, dword [esp + 0x20]
jmp 0x514364
cmp al, 2
jne 0x51397c
push str.cannot_UPSERT_a_view
push ebp
call fcn.00505000
mov ebx, dword [esp + 0x28]
add esp, 8
jmp 0x514364
push dword [edx]
push ebp
call fcn.00511d60
add esp, 8
test eax, eax
jne 0x513958
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xc4]
mov eax, dword [esp + 0x4c]
mov dword [edx + 0x34], ecx
cmp dword [esi], 0
mov edi, dword [esp + 0x6c]
mov dword [esi + 0x2c], edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
je 0x5139df
push esi
push edx
push ebp
call fcn.0052a730
add esp, 0xc
test eax, eax
jne 0x51435c
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb4]
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x5139a4
cmp byte [esp + 0x1b], 0
je 0x513a0c
push dword [esp + 0x34]
push 0x24
push edi
call fcn.0052b3b0
mov dword [esp + 0x80], eax
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x70], eax
jmp 0x513a45
cmp dword [esp + 0x20], 0
je 0x513a45
push ebx
push 0xc
push edi
call fcn.0052b3b0
mov dword [esp + 0x7c], eax
add esp, 0xc
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
test eax, eax
js 0x513a45
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
add ecx, eax
push ecx
push 0x50
push edi
call fcn.0052b410
add esp, 0x10
mov esi, dword [esp + 0x10]
xor edx, edx
mov ebx, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ecx
cmp ax, word [esi + 0x22]
jge 0x513c28
movsx eax, word [esi + 0x20]
cmp ecx, eax
jne 0x513ac5
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x513a8a
push 0
push 0
push ebx
push 0x4c
push edi
call fcn.004dd7e0
add esp, 0x14
jmp 0x513c0e
mov ebp, dword [esp + 0xb0]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x4c
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x513c12
shl ecx, 4
add ecx, dword [esi + 4]
movzx eax, word [ecx + 0xe]
test al, 0x62
je 0x513c6c
inc edx
mov dword [esp + 0x1c], edx
test al, 0x20
je 0x513ae6
dec ebx
jmp 0x513c12
test al, 0x40
je 0x513afd
test byte [esp + 0x9c], 1
je 0x513c12
jmp 0x513a6d
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x513c77
movzx eax, word [ecx + 0xc]
test ax, ax
jne 0x513b19
xor esi, esi
jmp 0x513b39
cmp byte [esi + 0x2b], 0
je 0x513b23
xor esi, esi
jmp 0x513b39
mov esi, dword [esi + 0x34]
test esi, esi
je 0x513b39
cmp dword [esi], eax
jge 0x513b32
xor esi, esi
jmp 0x513b39
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
cmp byte [ebp + 0x17], 0
je 0x513b94
mov dword [esp + 0x90], 0
mov eax, 2
mov dword [esp + 0x80], 0x524e20
mov dword [esp + 0x7c], fcn.004d6870
mov word [esp + 0x8c], ax
test esi, esi
je 0x513b87
lea eax, [esp + 0x78]
push esi
push eax
call fcn.00539e50
add esp, 8
cmp word [esp + 0x8c], 0
je 0x513b94
push ebx
push esi
push ebp
call fcn.00507170
add esp, 0xc
jmp 0x513c0a
mov edi, dword [ebp]
test esi, esi
je 0x513bad
push 0
push 0
push esi
push edi
call fcn.004d5ac0
add esp, 0x10
mov esi, eax
jmp 0x513baf
xor esi, esi
cmp byte [edi + 0x57], 0
jne 0x513bf8
cmp dword [ebp + 8], 0
je 0x513bf8
push ebx
push esi
push ebp
call fcn.00507350
mov ecx, eax
add esp, 0xc
cmp ecx, ebx
je 0x513bf8
test esi, esi
je 0x513be5
test dword [esi + 4], 0x400000
jne 0x513bde
cmp byte [esi], 0xb0
jne 0x513be5
mov eax, 0x50
jmp 0x513bea
mov eax, 0x51
push ebx
push ecx
push eax
push dword [ebp + 8]
call fcn.0052b410
add esp, 0x10
test esi, esi
je 0x513c06
push esi
push edi
call fcn.00508c00
add esp, 8
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
inc ebx
movsx eax, word [esi + 0x22]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jl 0x513a65
dec dword [ebp + 0x38]
test byte [esp + 0x9c], 1
mov ebx, dword [ebp + 0x38]
je 0x513f64
movsx eax, word [esi + 0x22]
inc eax
push eax
push ebp
call fcn.00511250
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x30]
push esi
test eax, eax
jns 0x513e3b
push 0xffffffffffffffff
push 0x47
push edi
call fcn.0052b410
add esp, 0x10
jmp 0x513eb5
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x513cdd
mov esi, dword [eax]
xor edx, edx
test esi, esi
jle 0x513c98
mov edi, dword [esp + 0x3c]
mov ecx, esi
add eax, 0xc
cmp dword [eax], edi
je 0x513c94
inc edx
add eax, 8
cmp edx, ecx
jl 0x513c88
mov edi, dword [esp + 0x14]
cmp edx, esi
jl 0x513cd7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
add ecx, ecx
mov eax, dword [edx + 4]
movzx eax, word [eax + ecx*8 + 0xc]
test ax, ax
jne 0x513cba
xor esi, esi
jmp 0x513b39
cmp byte [edx + 0x2b], 0
je 0x513cc7
xor esi, esi
jmp 0x513b39
mov esi, dword [edx + 0x34]
test esi, esi
jne 0x513b2a
jmp 0x513b39
mov esi, dword [esp + 0x10]
jmp 0x513d00
cmp dword [esp + 0x28], 0
jne 0x513cf8
movzx eax, word [ecx + 0xc]
test ax, ax
jne 0x513b19
xor esi, esi
jmp 0x513b39
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x1c]
cmp byte [esp + 0x1b], 0
je 0x513d5c
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x513d25
push ebx
push edx
push dword [esp + 0x3c]
push 0x5e
push edi
call fcn.004dd7e0
add esp, 0x14
jmp 0x513c0e
mov ebp, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0xb0]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x513c0e
cmp dword [esp + 0x20], 0
je 0x513dbf
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x4c]
je 0x513c0e
mov ecx, dword [edi + 0x6c]
add edx, eax
cmp dword [edi + 0x70], ecx
jg 0x513d8f
push 0
push ebx
push edx
push 0x51
push edi
call fcn.004dd7e0
add esp, 0x14
jmp 0x513c0e
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x513c0a
mov ecx, dword [esp + 0x50]
lea eax, [edx + edx*4]
push ebx
mov edi, dword [ecx + eax*4 + 8]
push edi
push ebp
call fcn.00507350
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x513c06
mov edx, dword [edi + 4]
mov edi, dword [esp + 0x14]
shr edx, 0x16
not edx
and edx, 1
mov ecx, dword [edi + 0x6c]
or edx, 0x50
cmp dword [edi + 0x70], ecx
jg 0x513e0c
push 0
push ebx
push esi
push edx
push edi
call fcn.004dd7e0
add esp, 0x14
jmp 0x513c0a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
jmp 0x513c0a
cmp byte [esp + 0x1f], 0
je 0x513e54
push eax
push dword [esp + 0x3c]
push 0x5e
push edi
call fcn.0052b470
add esp, 0x14
jmp 0x513e68
mov ecx, dword [esp + 0x54]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 8]
push ebp
call fcn.00505eb0
add esp, 0xc
push esi
push 0x33
push edi
call fcn.0052b3b0
push esi
push 0xffffffffffffffff
push 0x47
push dword [esp + 0x2c]
mov edi, eax
call fcn.0052b410
mov eax, dword [esp + 0x30]
add esp, 0x1c
mov ecx, dword [eax]
mov edx, dword [eax + 0x6c]
cmp byte [ecx + 0x57], 0
je 0x513e9a
mov eax, 0x7937a8
jmp 0x513ea3
mov eax, dword [eax + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
push esi
push 0xd
push dword [esp + 0x1c]
mov dword [eax + 8], edx
call fcn.0052b3b0
add esp, 0xc
mov edx, dword [esp + 0x10]
lea edi, [esi + 1]
movsx eax, word [edx + 0x24]
dec eax
push eax
mov eax, dword [esp + 0x30]
push edi
inc eax
push eax
push 0x50
push dword [esp + 0x24]
call fcn.0052b470
mov eax, dword [esp + 0x24]
add esp, 0x14
test byte [eax + 0x1c], 0x60
je 0x513ef0
push eax
push edi
push ebp
call fcn.00500ba0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [esp + 0x27], 2
je 0x513f05
push edi
push eax
push dword [esp + 0x1c]
call fcn.00526c40
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, esi
push ebx
push dword [esp + 0xc4]
movsx eax, word [edx + 0x22]
sub ecx, eax
dec ecx
push ecx
push edx
push 1
push 0
push 0x7f
push dword [esp + 0x64]
push ebp
call fcn.004ffa30
mov ecx, dword [esp + 0x34]
add esp, 0x24
movsx eax, word [ecx + 0x22]
inc eax
cmp eax, 1
jne 0x513f57
test esi, esi
je 0x513f68
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x513f68
movzx eax, al
mov dword [ebp + eax*4 + 0xa0], esi
inc byte [ebp + 0x13]
jmp 0x513f68
cmp eax, dword [ebp + 0x1c]
jle 0x513f68
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], esi
jmp 0x513f68
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x27], 2
mov edi, dword [esp + 0x14]
je 0x514225
cmp byte [ecx + 0x2b], 1
jne 0x513f92
push dword [esp + 0x58]
push 0
push 0x4b
push edi
call fcn.0052b410
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x30]
test eax, eax
js 0x514075
cmp byte [esp + 0x1b], 0
je 0x513fbc
mov esi, dword [esp + 0x2c]
push esi
push eax
push dword [esp + 0x3c]
push 0x5e
push edi
call fcn.0052b470
add esp, 0x14
jmp 0x51400f
cmp dword [esp + 0x20], 0
jne 0x51400b
mov edx, dword [esp + 0x50]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 8]
cmp byte [eax], 0x79
jne 0x513ffa
cmp byte [ecx + 0x2b], 1
je 0x513ffa
push dword [esp + 0x68]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7f
push edi
call fcn.0052b470
add esp, 0x14
mov esi, 1
jmp 0x5140b3
mov esi, dword [esp + 0x2c]
push esi
push eax
push ebp
call fcn.00505eb0
add esp, 0xc
jmp 0x51400f
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x2b], 1
je 0x514054
push esi
push 0x33
push edi
call fcn.0052b3b0
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x3c]
push dword [esp + 0x54]
push 0x7f
push edi
call fcn.0052b470
push esi
push edi
call fcn.00535820
mov esi, dword [esp + 0x54]
add esp, 0x28
push esi
push 0xd
push edi
call fcn.0052b3b0
add esp, 0xc
jmp 0x5140b1
mov eax, dword [edi + 0x6c]
add eax, 2
push eax
push esi
push 0x32
push edi
call fcn.0052b410
add esp, 0x10
push esi
push 0xd
push edi
call fcn.0052b3b0
add esp, 0xc
jmp 0x5140b1
cmp byte [ecx + 0x2b], 1
je 0x5140a0
cmp byte [esp + 0x60], 0
jne 0x5140a0
push dword [esp + 0x68]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7f
push edi
call fcn.0052b470
add esp, 0x14
mov esi, 1
jmp 0x5140b3
push dword [esp + 0x2c]
push 0
push 0x4b
push edi
call fcn.0052b410
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x5140d0
push dword [esp + 0x2c]
push eax
push 0x9f
push dword [ebp + 8]
call fcn.0052b410
add esp, 0x10
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x1c], 0x60
je 0x5140ee
mov eax, dword [esp + 0x2c]
push ecx
inc eax
push eax
push ebp
call fcn.00500ba0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [ecx + 0x2b], 1
jne 0x51416f
mov esi, dword [ecx + 0x34]
test esi, esi
je 0x51410e
mov eax, dword [esp + 0x5c]
cmp dword [esi], eax
je 0x51410e
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x514103
push ecx
push ebp
call fcn.00539560
push 0xfffffffffffffff5
push esi
mov esi, dword [esp + 0x20]
push dword [esp + 0x68]
movsx eax, word [esi + 0x22]
add eax, 2
push eax
push 1
push 7
push edi
call fcn.0052b4d0
mov eax, dword [edi + 0x6c]
add esp, 0x24
test eax, eax
jle 0x51415c
mov ecx, dword [esp + 0xc0]
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 [ebp + 0x7c]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x514229
push dword [esp + 0xc4]
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0
push 0
push eax
mov eax, dword [esp + 0x3c]
push ebx
push dword [esp + 0xd0]
shr eax, 0x1f
xor al, 1
movzx eax, al
push eax
push 0
push dword [esp + 0x74]
push dword [esp + 0x8c]
push dword [esp + 0x64]
push dword [esp + 0x60]
push ecx
push ebp
call fcn.0050e590
mov eax, dword [esp + 0x90]
add esp, 0x34
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x5141e5
mov edx, dword [esp + 0x10]
push 0
push 0
push dword [esp + 0x60]
push 0
push edx
push ebp
call fcn.0050c630
add esp, 0x18
cmp dword [esp + 0x60], 0
je 0x5141f9
cmp dword [edi + 0xe0], 0
je 0x5141f9
xor eax, eax
jmp 0x5141fe
mov eax, 1
push eax
push esi
mov esi, dword [esp + 0x18]
push 0
push dword [esp + 0x44]
push dword [esp + 0x68]
push dword [esp + 0x80]
push dword [esp + 0x58]
push esi
push ebp
call fcn.00500950
add esp, 0x24
jmp 0x514229
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x514242
push 1
push eax
push 0x56
push edi
call fcn.0052b410
add esp, 0x10
mov edx, dword [esp + 0x48]
test edx, edx
je 0x514271
movsx eax, word [esi + 0x22]
mov ecx, dword [esp + 0x4c]
push ebx
push dword [esp + 0xc4]
sub ecx, eax
sub ecx, 2
push ecx
push esi
push 2
push 0
push 0x7f
push edx
push ebp
call fcn.004ffa30
add esp, 0x24
mov ecx, dword [edi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x51428b
push ebx
push edi
push ecx
call fcn.004f1810
add esp, 0xc
jmp 0x514294
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + ebx*4], eax
cmp byte [esp + 0x1b], 0
je 0x51431f
push dword [esp + 0x70]
mov ebx, dword [esp + 0x38]
push ebx
push 0x27
push edi
call fcn.0052b410
mov eax, dword [edi]
add esp, 0x10
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x5142c5
mov eax, 0x7937a8
jmp 0x5142d2
mov eax, dword [esp + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
push ebx
push 0x7a
push edi
mov dword [eax + 8], edx
call fcn.0052b3b0
add esp, 0xc
mov ebx, dword [esp + 0x20]
cmp byte [ebp + 0x12], 0
jne 0x514303
cmp dword [ebp + 0x80], 0
jne 0x514303
cmp dword [ebp + 0x78], 0
je 0x514303
push ebp
call fcn.004c7610
add esp, 4
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x514360
push str.rows_inserted
push eax
push edi
call fcn.004ff000
add esp, 0xc
jmp 0x514360
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x5142e5
push dword [esp + 0x70]
push edi
call fcn.00535260
mov eax, dword [edi]
add esp, 8
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x514349
mov eax, 0x7937a8
mov dword [eax + 8], edx
jmp 0x5142e5
mov eax, dword [esp + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x5142e5
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push dword [esp + 0xb4]
mov ebp, dword [esp + 0x60]
push ebp
call fcn.00525490
mov eax, dword [esp + 0x58]
add esp, 8
test eax, eax
je 0x51438a
push eax
push ebp
call fcn.004d6580
add esp, 8
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x51439f
push eax
push ebp
call fcn.00545c60
add esp, 8
test ebx, ebx
je 0x5143af
push 1
push ebx
push ebp
call fcn.004cce60
add esp, 0xc
push dword [esp + 0xbc]
push ebp
call fcn.005123a0
add esp, 8
test esi, esi
je 0x5143cd
push esi
push ebp
call fcn.00503150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret