Function at 0x5048a0
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 0x5058e7
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x504947
test dword [ebx + 4], 0x200
je 0x504947
cmp dword [ebx + 0x34], eax
jne 0x504947
mov eax, dword [ebx + 0x1c]
push 1
push ebx
push edi
mov dword [esp + 0x54], eax
mov dword [ebx + 0x1c], esi
call fcn.004af4d0
add esp, 0xc
mov dword [esp + 0x14], esi
push dword [esp + 0xac]
push ebp
call fcn.00515170
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x5058fa
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffff8000
mov dword [esp + 0x28], ebx
test ecx, ecx
je 0x504991
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
mov dword [esp + 0x28], ebx
cmp dword [eax], ecx
je 0x504991
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x504985
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.004e7a40
add esp, 0x14
test eax, eax
jne 0x504cf9
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.005166d0
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.00526520
add esp, 0x1c
test eax, eax
jne 0x504cf9
push dword [esp + 0x78]
push esi
push ebp
call fcn.00505cb0
add esp, 0xc
test eax, eax
jne 0x504cf9
push ebp
call fcn.00503820
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x504cf9
cmp byte [ebp + 0x12], 0
jne 0x504a34
or dword [eax + 0xa0], 0x10
cmp dword [esp + 0x14], 0
jne 0x504a43
test edi, edi
jne 0x504a43
xor eax, eax
jmp 0x504a48
mov eax, 1
push ebx
push eax
push ebp
call fcn.004e8500
add esp, 0xc
cmp dword [esp + 0xb4], 0
jne 0x504a84
mov eax, dword [esp + 0x14]
test eax, eax
je 0x504a84
test edi, edi
jne 0x504a84
push ebx
push dword [esp + 0xbc]
push eax
push esi
push ebp
call fcn.00543c20
add esp, 0x14
test eax, eax
jne 0x50581f
push esi
push ebx
push ebp
call fcn.004aa0c0
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 0x504abe
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 0x504c02
xor ecx, ecx
cmp dword [edx + 4], ecx
jle 0x504b00
jmp 0x504af0
mov eax, dword [edx]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edx + 4]
jl 0x504af0
xor edi, edi
mov dword [esp + 0x30], edi
cmp dword [edx + 4], edi
jle 0x504c02
mov edx, dword [esp + 0x1c]
movsx ebx, word [edx + 0x22]
xor esi, esi
test ebx, ebx
jle 0x504b8a
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.00515ad0
add esp, 8
test eax, eax
mov eax, dword [esp + 0x4c]
je 0x504b56
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x504b30
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
jmp 0x504b8a
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 0x504b78
mov dword [esp + 0x38], edi
mov eax, dword [edx + 4]
mov ecx, esi
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 0x60
jne 0x504ce6
movsx eax, word [edx + 0x22]
mov ebx, dword [esp + 0xb4]
cmp esi, eax
jl 0x504bf0
mov eax, dword [ebx]
push str._ROWID_
mov esi, dword [eax + edi*8]
push esi
call fcn.00515ad0
add esp, 8
test eax, eax
je 0x504bd8
push str.ROWID
push esi
call fcn.00515ad0
add esp, 8
test eax, eax
je 0x504bd8
push 0x57b1a4
push esi
call fcn.00515ad0
add esp, 8
test eax, eax
jne 0x504d00
cmp byte [esp + 0x50], 0
jne 0x504d00
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 0x504b13
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x14], 0
je 0x504dd5
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.0051a430
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.005117c0
mov ecx, dword [esp + 0xb0]
add esp, 0x20
mov dword [esp + 0x6c], ecx
test eax, eax
jne 0x504cf9
cmp dword [ebp + 0x24], eax
jne 0x504cf9
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.0051b4e0
lea eax, [esi - 1]
push eax
push edi
call fcn.00522e50
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 0x504d29
push dword [esp + 0x1c]
push ebx
push ebp
call fcn.004de7f0
add esp, 0xc
test eax, eax
jne 0x504d29
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
jmp 0x504e51
add esi, esi
push dword [eax + esi*8]
push str.cannot_INSERT_into_generated_column___s_
push ebp
call fcn.004f3220
add esp, 0xc
xor esi, esi
jmp 0x505859
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.004f3220
add esp, 0x10
mov byte [ebp + 0x11], 1
xor esi, esi
jmp 0x505860
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.00502e10
push ebp
mov edi, eax
call fcn.00502e10
push esi
mov esi, dword [esp + 0x1c]
mov ebx, eax
push edx
push 0x74
push esi
call fcn.0051a3d0
mov eax, dword [esp + 0xa0]
push eax
push 0xe
push esi
mov dword [esp + 0x48], eax
call fcn.0051a370
push edi
push dword [esp + 0x58]
mov esi, eax
push dword [esp + 0x98]
push 0x60
push dword [esp + 0x44]
call fcn.0051a430
push ebx
push dword [esp + 0x78]
push 0x7e
push dword [esp + 0x54]
call fcn.0051a3d0
add esp, 0x48
push ebx
push edi
push dword [esp + 0x44]
push 0x7f
push dword [esp + 0x20]
call fcn.0051a430
push esi
push dword [esp + 0x28]
call fcn.00522760
push esi
push dword [esp + 0x30]
call fcn.00522e50
push edi
push ebp
call fcn.0050fab0
push ebx
push ebp
call fcn.0050fab0
mov esi, dword [esp + 0x64]
add esp, 0x34
jmp 0x504e4d
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 0x504e47
mov esi, dword [eax]
push eax
lea eax, [esp + 0x88]
mov dword [esp + 0x34], esi
push eax
call fcn.0050ffe0
add esp, 8
test eax, eax
jne 0x504cf9
jmp 0x504e4d
xor esi, esi
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb4]
test ebx, ebx
jne 0x504f0b
mov ebx, dword [esp + 0x1c]
test esi, esi
jle 0x504f2d
movsx eax, word [ebx + 0x20]
mov dword [esp + 0x38], eax
test eax, eax
js 0x504eaa
test byte [ebx + 0x1c], 0x60
je 0x504eaa
lea edx, [eax - 1]
test edx, edx
js 0x504eaa
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 0x504e9c
dec edi
sub eax, 0x10
dec edx
jns 0x504e96
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x10]
test byte [ebx + 0x1c], 0x62
je 0x504eda
movsx ecx, word [ebx + 0x22]
test ecx, ecx
jle 0x504eda
mov eax, dword [ebx + 4]
add eax, 0xe
xor ebp, ebp
test byte [eax], 0x62
je 0x504ec6
inc ebp
add eax, 0x10
dec ecx
jne 0x504ec0
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0xa8]
movsx eax, word [ebx + 0x22]
sub eax, dword [esp + 0x80]
cmp esi, eax
je 0x504f2d
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.004f3220
add esp, 0x14
xor esi, esi
jmp 0x505859
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x504f29
push eax
push esi
push str._d_values_for__d_columns
push ebp
call fcn.004f3220
add esp, 0x10
xor esi, esi
jmp 0x505860
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 0x504f6d
cmp byte [ebp + 0x12], 0
jne 0x504f6d
cmp dword [ebp + 0x78], 0
jne 0x504f6d
cmp byte [ebp + 0x95], 0
jne 0x504f6d
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
push eax
push 0
push 0x47
push edi
mov dword [esp + 0x84], eax
call fcn.0051a3d0
add esp, 0x10
cmp dword [esp + 0x70], 0
jne 0x504feb
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.00508520
mov esi, eax
push 0
lea eax, [esi*4 + 8]
push eax
push dword [esp + 0x84]
call fcn.004f0ee0
add esp, 0x2c
mov dword [esp + 0x34], eax
test eax, eax
je 0x505855
mov edx, dword [ebx + 8]
xor ecx, ecx
test esi, esi
jle 0x504fdc
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 0x504fc0
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 0x504fed
xor esi, esi
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x5050a2
mov al, byte [ebx + 0x2b]
cmp al, 1
jne 0x505018
push dword [ebx]
push str.UPSERT_not_implemented_for_virtual_table___s_
push ebp
call fcn.004f3220
add esp, 0xc
jmp 0x505859
cmp al, 2
jne 0x50502f
push str.cannot_UPSERT_a_view
push ebp
call fcn.004f3220
add esp, 8
jmp 0x505859
push dword [ecx]
push ebp
call fcn.005038d0
add esp, 8
test eax, eax
jne 0x505859
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 0x505060
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 0x50509b
push esi
push edx
push ebp
call fcn.00519420
add esp, 0xc
test eax, eax
jne 0x505855
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xac]
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x505060
cmp byte [esp + 0x1a], 0
je 0x5050c5
push dword [esp + 0x3c]
push 0x26
push edi
call fcn.0051a370
mov dword [esp + 0x74], eax
add esp, 0xc
mov eax, dword [edi + 0x74]
mov dword [esp + 0x58], eax
jmp 0x505103
cmp dword [esp + 0x14], 0
je 0x505103
push dword [esp + 0x24]
push 0xe
push edi
call fcn.0051a370
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 0x505103
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
add ecx, eax
push ecx
push 0x4f
push edi
call fcn.0051a3d0
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 0x505307
xor edx, edx
mov dword [esp + 0x28], edx
movsx eax, word [ebx + 0x20]
cmp ecx, eax
jne 0x505148
push esi
push 0x4b
push edi
call fcn.0051a370
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x28]
jmp 0x5052ee
mov edi, dword [ebx + 4]
add edi, edx
movzx eax, word [edi + 0xe]
test al, 0x62
je 0x5051b0
inc dword [esp + 0x4c]
test al, 0x20
je 0x505163
dec esi
jmp 0x5052ea
test al, 0x40
je 0x50518f
test byte [esp + 0x78], 1
je 0x5052ea
mov edi, dword [esp + 0x10]
push esi
push 0x4b
push edi
call fcn.0051a370
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x28]
jmp 0x5052ee
cmp dword [esp + 0xb4], 0
jne 0x5051be
push esi
push edi
push ebx
call fcn.004ee3a0
add esp, 8
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
cmp dword [esp + 0xb4], 0
je 0x505268
mov edx, dword [esp + 0xb4]
xor eax, eax
mov edx, dword [edx + 4]
test edx, edx
jle 0x5051f7
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 0x5051ec
inc eax
add ecx, 8
cmp eax, edx
jl 0x5051e0
mov ebp, dword [esp + 0xa8]
mov ecx, dword [esp + 0x24]
cmp eax, edx
jl 0x505262
movzx eax, word [edi + 0xc]
test ax, ax
jne 0x505213
xor eax, eax
push esi
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
cmp byte [ebx + 0x2b], 0
je 0x505228
xor eax, eax
push esi
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x50523e
xor eax, eax
push esi
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
cmp dword [ecx], eax
jge 0x505251
xor eax, eax
push esi
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push esi
push eax
push ebp
call fcn.004f4170
jmp 0x5052df
mov edx, dword [esp + 0x28]
jmp 0x505279
cmp dword [esp + 0x30], 0
je 0x505199
mov eax, ecx
sub eax, dword [esp + 0x4c]
cmp byte [esp + 0x1a], 0
je 0x50529f
mov edi, dword [esp + 0x10]
push esi
push eax
push dword [esp + 0x44]
push 0x5d
push edi
call fcn.0051a430
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x28]
jmp 0x5052ee
cmp dword [esp + 0x14], 0
je 0x5052cd
mov edi, dword [esp + 0x6c]
cmp edi, dword [esp + 0x44]
je 0x5052ea
push esi
add eax, edi
mov edi, dword [esp + 0x14]
push eax
push 0x50
push edi
call fcn.0051a3d0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edx, dword [esp + 0x28]
jmp 0x5052ee
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*4]
push esi
push dword [ecx + eax*4 + 8]
push ebp
call fcn.004f3f00
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 0x505127
dec dword [ebp + 0x38]
test byte [esp + 0x78], 1
mov ebx, dword [ebp + 0x38]
je 0x50547b
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x22]
inc eax
push eax
push ebp
call fcn.00502db0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x38]
push esi
test eax, eax
jns 0x505348
push 0xffffffffffffffff
push 0x47
push edi
call fcn.0051a3d0
add esp, 0x10
jmp 0x5053cd
cmp byte [esp + 0x1e], 0
je 0x505361
push eax
push dword [esp + 0x44]
push 0x5d
push edi
call fcn.0051a430
add esp, 0x14
jmp 0x505375
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 8]
push ebp
call fcn.004f3f00
add esp, 0xc
push esi
push 0x33
push edi
call fcn.0051a370
push esi
push 0xffffffffffffffff
push 0x47
push dword [esp + 0x28]
mov edi, eax
call fcn.0051a3d0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov edx, dword [eax + 0x74]
test edi, edi
jns 0x50539f
lea edi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x5053ae
mov eax, 0x6a4314
jmp 0x5053bb
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.0051a370
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.0051a430
mov eax, dword [esp + 0x30]
add esp, 0x14
test byte [eax + 0x1c], 0x60
je 0x505402
push eax
push edi
push ebp
call fcn.004eed20
add esp, 0xc
cmp dword [esp + 0x70], 0
jne 0x50541d
push edi
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x18]
call fcn.00515c50
add esp, 0xc
jmp 0x505421
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.004edc90
movsx eax, word [edi + 0x22]
add esp, 0x24
inc eax
cmp eax, 1
jne 0x50546e
test esi, esi
je 0x50547f
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x50547f
movzx eax, al
mov dword [ebp + eax*4 + 0x98], esi
inc byte [ebp + 0x13]
jmp 0x50547f
cmp eax, dword [ebp + 0x1c]
jle 0x50547f
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], esi
jmp 0x50547f
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x70], 0
mov esi, dword [esp + 0x10]
jne 0x505713
cmp byte [edi + 0x2b], 1
jne 0x5054a5
push dword [esp + 0x54]
push 0
push 0x4a
push esi
call fcn.0051a3d0
add esp, 0x10
mov eax, dword [esp + 0x38]
test eax, eax
js 0x50558b
cmp byte [esp + 0x1a], 0
je 0x5054ce
push dword [esp + 0x2c]
push eax
push dword [esp + 0x44]
push 0x5d
push esi
call fcn.0051a430
add esp, 0x14
jmp 0x50551a
cmp dword [esp + 0x14], 0
jne 0x50551a
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 8]
cmp byte [eax], 0x79
jne 0x50550c
cmp byte [edi + 0x2b], 1
je 0x50550c
push dword [esp + 0x64]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7e
push esi
call fcn.0051a430
add esp, 0x14
mov byte [esp + 0x23], 1
jmp 0x5055c7
push dword [esp + 0x2c]
push eax
push ebp
call fcn.004f3f00
add esp, 0xc
cmp byte [edi + 0x2b], 1
je 0x505564
push dword [esp + 0x2c]
push 0x33
push esi
call fcn.0051a370
push dword [esp + 0x70]
mov esi, eax
push dword [esp + 0x3c]
push dword [esp + 0x54]
push 0x7e
push dword [esp + 0x2c]
call fcn.0051a430
push esi
mov esi, dword [esp + 0x34]
push esi
call fcn.00522e50
add esp, 0x28
push dword [esp + 0x2c]
push 0xf
push esi
call fcn.0051a370
add esp, 0xc
jmp 0x5055c7
mov eax, dword [esi + 0x74]
add eax, 2
push eax
push dword [esp + 0x30]
push 0x32
push esi
call fcn.0051a3d0
add esp, 0x10
push dword [esp + 0x2c]
push 0xf
push esi
call fcn.0051a370
add esp, 0xc
jmp 0x5055c7
cmp byte [edi + 0x2b], 1
je 0x5055b6
cmp byte [esp + 0x50], 0
jne 0x5055b6
push dword [esp + 0x64]
push dword [esp + 0x30]
push dword [esp + 0x48]
push 0x7e
push esi
call fcn.0051a430
add esp, 0x14
mov byte [esp + 0x23], 1
jmp 0x5055c7
push dword [esp + 0x2c]
push 0
push 0x4a
push esi
call fcn.0051a3d0
add esp, 0x10
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x5055e4
push dword [esp + 0x2c]
push eax
push 0x9e
push dword [ebp + 8]
call fcn.0051a3d0
add esp, 0x10
test byte [edi + 0x1c], 0x60
je 0x5055f8
push edi
push dword [esp + 0x48]
push ebp
call fcn.004eed20
add esp, 0xc
cmp byte [edi + 0x2b], 1
jne 0x505679
mov esi, dword [edi + 0x34]
test esi, esi
je 0x50561b
mov eax, dword [esp + 0x5c]
lea esp, [esp]
cmp dword [esi], eax
je 0x50561b
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x505610
push edi
push ebp
call fcn.00527200
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.0051a490
mov eax, dword [esp + 0xdc]
add esp, 0x24
mov edx, 2
cmp eax, 0xb
je 0x505655
mov edx, eax
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x505667
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 0x505670
mov eax, ebp
mov byte [eax + 0x15], 1
jmp 0x505713
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.004ffef0
push 0
push 0
push dword [esp + 0x90]
push 0
push edi
push ebp
call fcn.004f9ee0
add esp, 0x4c
cmp dword [esp + 0x50], 0
je 0x5056eb
cmp dword [esi + 0xe8], 0
je 0x5056eb
xor eax, eax
jmp 0x5056f0
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.004eeb30
add esp, 0x24
mov eax, dword [esp + 0x74]
test eax, eax
je 0x505729
push 1
push eax
push 0x55
push esi
call fcn.0051a3d0
add esp, 0x10
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x505758
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.004edc90
add esp, 0x24
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x505772
push ebx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x50577b
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebx*4], eax
cmp byte [esp + 0x1a], 0
je 0x5057dc
push dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
push ebx
push 5
push esi
call fcn.0051a3d0
mov ecx, dword [esp + 0x78]
add esp, 0x10
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x5057a4
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5057c2
mov eax, 0x6a4314
push ebx
push 0x79
push esi
mov dword [eax + 8], edx
call fcn.0051a370
add esp, 0xc
jmp 0x505823
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.0051a370
add esp, 0xc
jmp 0x505823
cmp dword [esp + 0x14], 0
je 0x505823
push dword [esp + 0x58]
push esi
call fcn.00522760
mov ecx, dword [esp + 0x70]
add esp, 8
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x5057fe
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x505810
mov eax, 0x6a4314
mov dword [eax + 8], edx
jmp 0x505823
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x505823
mov esi, dword [esp + 0x10]
cmp byte [ebp + 0x12], 0
jne 0x50583e
cmp dword [ebp + 0x78], 0
jne 0x50583e
cmp dword [ebp + 0x70], 0
je 0x50583e
push ebp
call fcn.004aa1c0
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x505855
push str.rows_inserted
push eax
push esi
call fcn.004ed420
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.00514ab0
mov eax, dword [esp + 0x50]
add esp, 8
test eax, eax
je 0x50588a
push eax
push ebp
call fcn.004b85c0
add esp, 8
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x50589f
push eax
push ebp
call fcn.005333e0
add esp, 8
test edi, edi
je 0x5058af
push 1
push edi
push ebp
call fcn.004af4d0
add esp, 0xc
push ebx
push ebp
call fcn.00503d20
add esp, 8
test esi, esi
je 0x50595f
test ebp, ebp
je 0x505956
cmp dword [ebp + 0x210], 0
je 0x50590c
push esi
push ebp
call fcn.004d5010
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 0x505864
mov edi, dword [esp + 0x14]
xor esi, esi
mov ebx, dword [esp + 0xb4]
jmp 0x505864
cmp esi, dword [ebp + 0x164]
jae 0x505956
cmp esi, dword [ebp + 0x15c]
jb 0x505935
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 0x505956
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.00499150
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret