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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
or ecx, 0xffffffff
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi]
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x6c], edx
xor eax, eax
mov dword [esp + 0x70], edx
cmp ecx, eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], edx
jne 0x51ac1a
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0x1e]
test cl, cl
jne 0x51ac1a
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x51ac1a
mov edx, ecx
push edx
push esi
call fcn.005193c0
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x51ac1a
mov eax, dword [ebx + 0x48]
mov edi, dword [esp + 0x30]
push eax
push edi
call fcn.0050ae10
mov edx, dword [edi + 8]
lea ecx, [eax + eax*2]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + ecx*8]
push eax
mov eax, dword [ebx + 4]
push 0
push eax
push 0x12
push esi
call fcn.00515430
add esp, 0x1c
test eax, eax
jne 0x51ac1a
push eax
push 0x6a
push ebx
call fcn.00523540
mov edx, dword [ebx + 0x1c]
xor ecx, ecx
test edx, edx
push eax
push ebx
setne cl
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], ecx
call fcn.00519ad0
add esp, 0x18
test eax, eax
jne 0x51ac1a
push ebx
push esi
call fcn.00516ef0
add esp, 8
test eax, eax
jne 0x51ac1a
push esi
call fcn.0051e480
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x51ac1a
mov al, byte [esi + 0x13]
test al, al
jne 0x519fd0
push ebp
call fcn.00519a70
add esp, 4
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x519fe7
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x519fe7
xor eax, eax
jmp 0x519fec
mov eax, 1
mov edi, dword [esp + 0x64]
push edi
push eax
push esi
call fcn.00518af0
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x51a00e
mov eax, dword [esi + 0x44]
mov dword [esp + 0x44], eax
inc eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x51a040
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb0]
push edi
push edx
push eax
push ebx
push esi
call fcn.0051b860
add esp, 0x14
test eax, eax
jne 0x51ac1a
mov edi, dword [esp + 0x64]
push ebx
push edi
push esi
call fcn.0051add0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xbc]
add esp, 0xc
test eax, eax
je 0x51a231
mov eax, dword [esi + 0x48]
inc eax
push eax
push 0
push 0x31
push ebp
mov dword [esi + 0x48], eax
mov dword [esp + 0x24], eax
call fcn.005107e0
mov edx, dword [esi + 0x48]
lea ecx, [esp + 0x7c]
inc edx
mov eax, edx
mov dword [esi + 0x48], edx
push eax
push 0xa
push ecx
call fcn.0051dd00
push ebp
call fcn.00510c90
mov edx, dword [esp + 0x90]
mov edi, eax
add edi, 2
push edx
lea eax, [edi - 1]
push eax
push 0x31
push ebp
call fcn.005107e0
push 0
push 0
push 0x61
push ebp
call fcn.005107e0
mov edx, dword [esp + 0xf0]
add esp, 0x40
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], eax
push ecx
push edx
push esi
call fcn.0051f0e0
add esp, 0xc
test eax, eax
jne 0x51ac1a
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x51ac1a
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0x1e]
test cl, cl
jne 0x51ac1a
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0x31
push ebp
call fcn.005107e0
mov edx, dword [esp + 0x80]
push edx
push 0x3d
push ebp
call fcn.00510bf0
push 2
push 2
push 0x28
push ebp
call fcn.005107e0
mov eax, dword [esp + 0x4c]
push eax
push ebp
call fcn.00510ca0
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x88], ecx
add esp, 0x34
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x28], ecx
jne 0x51a16a
mov edx, dword [esp + 0x64]
push ebx
push edx
push edi
push ebp
call fcn.0051ad40
add esp, 0x10
test eax, eax
je 0x51a2a4
mov eax, dword [esi + 0x44]
push esi
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x44], 1
mov dword [esi + 0x44], eax
call fcn.00513590
push esi
mov edi, eax
call fcn.00513590
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push 0x74
push ebp
call fcn.005107e0
mov edx, dword [esp + 0x88]
push edx
push 0x3d
push ebp
call fcn.00510bf0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push eax
push 0xb
push ebp
call fcn.00510bf0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x84]
push edi
push ecx
push edx
push 0x5a
push ebp
mov dword [esp + 0x8c], eax
call fcn.0050fb50
mov eax, dword [esp + 0x68]
add esp, 0x44
push ebx
push eax
push 0x1b
push ebp
call fcn.005107e0
mov ecx, dword [esp + 0x34]
push ebx
push edi
push ecx
push 0x6e
push ebp
call fcn.0050fb50
mov edx, dword [esp + 0x44]
push edx
push 0
push 0x61
push ebp
call fcn.005107e0
mov eax, dword [esp + 0x7c]
push eax
push ebp
call fcn.00510ca0
push edi
push esi
call fcn.005135c0
add esp, 0x44
push ebx
push esi
call fcn.005135c0
mov ebx, dword [esp + 0x20]
add esp, 8
jmp 0x51a2a4
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x24], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xac]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x7c], esi
je 0x51a25b
mov eax, dword [eax]
jmp 0x51a25d
xor eax, eax
cmp eax, edi
mov dword [esp + 0x28], eax
jle 0x51a2a4
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov ecx, dword [eax + edx]
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.00513780
add esp, 8
test eax, eax
jne 0x51ac1a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc edi
add ecx, 0x10
cmp edi, eax
mov dword [esp + 0x18], ecx
jl 0x51a269
test byte [ebx + 0x22], 0x10
je 0x51a2d0
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x51a2d0
mov eax, dword [ebx + 0x10]
add eax, 0x13
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov edx, dword [esp + 0x1c]
setne cl
add edx, ecx
add eax, 0x14
dec edi
mov dword [esp + 0x1c], edx
jne 0x51a2b7
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x51a319
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x51a444
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, eax
sub edx, edi
cmp ecx, edx
je 0x51a439
mov edx, dword [esp + 0xa8]
push ecx
push eax
push 0
push edx
push str.table__S_has__d_columns_but__d_values_were_supplied
push esi
call fcn.00506650
add esp, 0x18
jmp 0x51ac1a
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, edx
je 0x51a339
push edx
push eax
push str._d_values_for__d_columns
push esi
call fcn.00506650
add esp, 0x10
jmp 0x51ac1a
xor eax, eax
test edx, edx
jle 0x51a350
or edx, 0xffffffff
mov edi, dword [ecx]
inc eax
mov dword [edi + eax*8 - 4], edx
mov edi, dword [ecx + 4]
cmp eax, edi
jl 0x51a342
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x51a444
mov eax, dword [ebx + 0xc]
xor edi, edi
test eax, eax
jle 0x51a3c9
mov dword [esp + 0x18], edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edx + eax*8]
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51a3ad
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
inc edi
add ecx, 0x14
cmp edi, eax
mov dword [esp + 0x18], ecx
jl 0x51a370
jmp 0x51a3c9
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [ebx + 8]
cmp edi, ecx
jne 0x51a3c9
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
cmp edi, eax
mov edi, dword [esp + 0xb4]
jl 0x51a3f5
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*8]
push ecx
call fcn.005150a0
add esp, 4
test eax, eax
je 0x51a40b
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51a363
jmp 0x51a444
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0xa8]
push edx
push 0
push eax
push str.table__S_has_no_column_named__s
push esi
call fcn.00506650
mov eax, dword [esi + 0x40]
add esp, 0x14
inc eax
mov dword [esi + 0x40], eax
jmp 0x51ac1a
test ecx, ecx
jle 0x51a444
mov ecx, dword [ebx + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x51a46c
mov edx, dword [ebx + 0xc]
push edx
push 0
push 0x66
push ebp
call fcn.005107e0
mov eax, dword [esp + 0x54]
push 0
push eax
push 0x73
push ebp
call fcn.005107e0
add esp, 0x20
mov ecx, dword [esp + 0x30]
test byte [ecx + 0xc], 0x80
je 0x51a491
mov edx, dword [esi + 0x48]
inc edx
mov eax, edx
mov dword [esi + 0x48], edx
push eax
push 0
push 0x31
push ebp
mov dword [esp + 0x78], eax
call fcn.005107e0
add esp, 0x10
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x51a4e1
mov eax, dword [esi + 0x44]
push 0xa
push eax
push ebx
push esi
mov dword [esp + 0x44], eax
call fcn.0051b7b0
mov edi, eax
mov eax, dword [esp + 0x40]
lea edx, [edi*4 + 4]
push edx
push eax
call fcn.004ee570
add esp, 0x18
mov dword [esp + 0x50], eax
test eax, eax
je 0x51ac1a
test edi, edi
jle 0x51a4e1
mov ecx, dword [esi + 0x48]
add eax, 4
inc ecx
dec edi
mov dword [esi + 0x48], ecx
mov dword [eax - 4], ecx
jne 0x51a4d1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51a509
mov ecx, dword [esp + 0x24]
push ecx
push 0x78
push ebp
call fcn.00510bf0
push ebp
mov dword [esp + 0x6c], eax
call fcn.00510c90
add esp, 0x10
mov dword [esp + 0x58], eax
jmp 0x51a539
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x51a539
mov edx, dword [esp + 0x70]
push edx
push 0x3d
push ebp
call fcn.00510bf0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
push eax
push 0xb
push ebp
call fcn.00510bf0
add esp, 0x18
mov dword [esp + 0x5c], eax
mov edx, dword [esi + 0x48]
inc edx
mov dword [esi + 0x48], edx
mov ecx, dword [ebx + 0xc]
mov eax, edx
lea edi, [eax + 1]
lea eax, [ecx + eax + 1]
mov dword [esi + 0x48], eax
mov cl, byte [ebx + 0x22]
test cl, 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edi
je 0x51a568
inc edi
inc eax
mov dword [esp + 0x20], edi
mov dword [esi + 0x48], eax
push ebp
call fcn.00510c10
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x3c]
add esp, 4
test al, 1
je 0x51a75f
push esi
call fcn.00513590
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x10], edi
test eax, eax
jge 0x51a5a8
push edi
push 0xffffffffffffffff
push 0x31
push ebp
call fcn.005107e0
add esp, 0x10
jmp 0x51a60a
mov ecx, dword [esp + 0x40]
push edi
test ecx, ecx
je 0x51a5c4
mov edx, dword [esp + 0x28]
push eax
push edx
push 3
push ebp
call fcn.0050fb50
add esp, 0x14
jmp 0x51a60a
mov ecx, dword [esp + 0xb0]
shl eax, 4
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
push eax
push esi
call fcn.00510ee0
push edi
push 0x47
push ebp
call fcn.00510bf0
push edi
push 0xffffffffffffffff
push 0x31
push ebp
mov dword [esp + 0x3c], eax
call fcn.005107e0
mov ecx, dword [esp + 0x3c]
push ecx
push ebp
call fcn.00510ca0
push edi
push 0x27
push ebp
call fcn.00510bf0
add esp, 0x3c
mov edx, dword [ebx + 0xc]
push edx
push esi
call fcn.005136b0
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xc]
add esp, 8
xor edi, edi
test eax, eax
jle 0x51a6c8
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x51a65b
mov eax, edi
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
je 0x51a694
mov edx, dword [esp + 0x24]
add ecx, edi
push ecx
push eax
push edx
push 3
push ebp
call fcn.0050fb50
add esp, 0x14
jmp 0x51a6b1
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
jle 0x51a675
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edi
je 0x51a675
inc eax
add ecx, 8
cmp eax, edx
jl 0x51a669
cmp eax, edx
jl 0x51a639
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
add eax, edi
push eax
mov eax, dword [ecx + edx + 4]
push eax
push esi
call fcn.00510ee0
jmp 0x51a6ae
mov edx, dword [esp + 0xac]
add ecx, edi
push ecx
mov ecx, dword [edx + 0xc]
shl eax, 4
mov edx, dword [eax + ecx]
push edx
push esi
call fcn.0051ac70
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
inc edi
add ecx, 0x14
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x51a62c
push esi
call fcn.00513590
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [ebx + 0xc]
push edi
push eax
push ecx
push 0x5a
push ebp
call fcn.0050fb50
mov eax, dword [esp + 0x78]
add esp, 0x18
test eax, eax
jne 0x51a6f7
push ebx
push ebp
call fcn.0051acc0
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
push edx
push edi
push eax
push 0x6e
push ebp
call fcn.0050fb50
push edi
push esi
call fcn.005135c0
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call fcn.005135c0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x40]
push edx
push eax
push esi
call fcn.00513700
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0x74]
push 0
push 0
push ecx
push edx
push 0xffffffffffffffff
push eax
push ebx
push 1
push 0
push 0x6a
push esi
call fcn.005235f0
add esp, 0x5c
test eax, eax
jne 0x51ac1a
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x51aab5
test byte [ebx + 0x22], 0x10
je 0x51a783
mov ecx, dword [esp + 0x48]
push ecx
push 0
push 0x75
push ebp
call fcn.005107e0
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x51a8a3
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51a7f6
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push edi
push edx
push eax
push 3
push ebp
call fcn.0050fb50
add esp, 0x14
test byte [ebx + 0x22], 0x10
jne 0x51a87f
push edi
push 0x47
push ebp
call fcn.00510bf0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
push eax
push edi
push ecx
push 0x1b
push ebp
call fcn.0050fb50
mov edx, dword [esp + 0x40]
push edx
push ebp
call fcn.00510ca0
add esp, 0x28
push edi
push 0x27
push ebp
call fcn.00510bf0
add esp, 0xc
jmp 0x51a8d7
mov eax, dword [esp + 0xb0]
push edi
test eax, eax
je 0x51a81a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
add edx, ecx
push edx
push 9
push ebp
call fcn.005107e0
add esp, 0x10
jmp 0x51a7ad
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x30]
shl eax, 4
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
push eax
push esi
call fcn.00510ee0
push ebp
call fcn.00510c90
dec eax
push eax
push ebp
call fcn.00512fb0
add esp, 0x18
test eax, eax
je 0x51a7ad
cmp byte [eax], 0x75
jne 0x51a7ad
test byte [ebx + 0x22], 0x10
jne 0x51a7ad
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x3c], 1
mov byte [eax], 0x1b
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
jmp 0x51a8d7
push ebp
call fcn.00510c90
add eax, 2
push eax
push edi
push 0x46
push ebp
call fcn.005107e0
add esp, 0x14
push edi
push 0x27
push ebp
call fcn.00510bf0
add esp, 0xc
jmp 0x51a8d7
test byte [ebx + 0x22], 0x10
je 0x51a8b9
push edi
push 0
push 0x75
push ebp
call fcn.005107e0
add esp, 0x10
jmp 0x51a8d7
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
push eax
push edi
push ecx
push 0x1b
push ebp
call fcn.0050fb50
add esp, 0x14
mov dword [esp + 0x3c], 1
mov edx, dword [esp + 0x4c]
push edi
push edx
push esi
call fcn.0051aed0
mov ecx, dword [ebx + 0xc]
xor eax, eax
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
jle 0x51a971
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jne 0x51a91b
push edi
push 0
push 0x75
push ebp
call fcn.005107e0
add esp, 0x10
jmp 0x51a951
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x51a9b2
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [edx + eax + 0x13], cl
je 0x51a9a6
inc dword [esp + 0x1c]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov eax, dword [ecx + edx + 4]
push eax
push esi
call fcn.00510ee0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
inc eax
inc edi
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
jl 0x51a900
test byte [ebx + 0x22], 0x10
je 0x51aa53
push ebx
push esi
call fcn.00525150
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
push 0xfffffffffffffff6
push ecx
add eax, 2
push edx
push eax
push 1
push 0x7b
push ebp
call fcn.0050fb10
add esp, 0x24
jmp 0x51aab5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
sub eax, edx
jmp 0x51a9db
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
jle 0x51a9e3
mov ecx, dword [ecx]
add ecx, 4
mov edi, dword [esp + 0x10]
cmp dword [ecx], edi
je 0x51a9d0
inc eax
add ecx, 8
cmp eax, edx
jl 0x51a9c0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0xb4]
test eax, eax
jl 0x51a93b
mov edx, dword [esp + 0x28]
test edx, edx
je 0x51a93b
test ecx, ecx
je 0x51a9fc
cmp eax, dword [ecx + 4]
jge 0x51a93b
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x51aa1b
mov ecx, dword [esp + 0x24]
push edi
push eax
push ecx
push 3
push ebp
call fcn.0050fb50
add esp, 0x14
jmp 0x51a951
mov ecx, dword [esp + 0xb0]
push edi
test ecx, ecx
je 0x51aa3e
mov edx, dword [esp + 0x58]
add eax, edx
push eax
push 9
push ebp
call fcn.005107e0
add esp, 0x10
jmp 0x51a951
mov ecx, dword [esp + 0xb0]
shl eax, 4
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
jmp 0x51a947
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
xor eax, eax
test edx, edx
mov edx, dword [esp + 0x3c]
push 0
setge al
push eax
push ecx
push edi
push edx
push ebx
push esi
call fcn.0051afb0
mov al, byte [esp + 0x5c]
add esp, 0x24
test al, 2
je 0x51aa95
mov eax, dword [esp + 0x44]
jmp 0x51aa98
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push 0
push edx
push edi
push eax
push ebx
push esi
call fcn.0051b690
add esp, 0x20
mov ecx, dword [esp + 0x30]
test byte [ecx + 0xc], 0x80
je 0x51aad1
mov edx, dword [esp + 0x68]
push 1
push edx
push 0x2b
push ebp
call fcn.005107e0
add esp, 0x10
mov eax, dword [esp + 0x38]
test eax, eax
je 0x51ab09
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x44]
push 0
push 0
push eax
push ecx
push 0xffffffffffffffff
push edx
push ebx
push 2
push 0
push 0x6a
push esi
call fcn.005235f0
add esp, 0x2c
test eax, eax
jne 0x51ac1a
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.00510c70
mov eax, dword [esp + 0x48]
add esp, 8
test eax, eax
je 0x51ab4a
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x24]
push ecx
push edi
push 0x6b
push ebp
call fcn.005107e0
mov edx, dword [esp + 0x6c]
push edx
push ebp
call fcn.00510ca0
push edi
push 0x22
push ebp
call fcn.00510bf0
add esp, 0x24
jmp 0x51ab72
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x51ab72
mov eax, dword [esp + 0x58]
push eax
push 0
push 0x61
push ebp
call fcn.005107e0
mov ecx, dword [esp + 0x6c]
push ecx
push ebp
call fcn.00510ca0
add esp, 0x18
test byte [ebx + 0x22], 0x10
jne 0x51abc0
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x51abc0
mov edx, dword [esp + 0x34]
push edx
push 0x22
push ebp
call fcn.00510bf0
mov edi, dword [ebx + 0x14]
add esp, 0xc
test edi, edi
je 0x51abc0
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
push ecx
push 0x22
push ebp
call fcn.00510bf0
mov ecx, dword [esp + 0x48]
mov edi, dword [edi + 0x20]
add esp, 0xc
inc ecx
test edi, edi
mov dword [esp + 0x3c], ecx
jne 0x51aba0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x64]
push edx
push ebx
push eax
push esi
call fcn.0051af00
mov ecx, dword [esp + 0x40]
add esp, 0x10
test byte [ecx + 0xc], 0x80
je 0x51ac1a
mov al, byte [esi + 0x13]
test al, al
jne 0x51ac1a
mov eax, dword [esi + 0x194]
test eax, eax
jne 0x51ac1a
mov edx, dword [esp + 0x68]
push 1
push edx
push 0x5b
push ebp
call fcn.005107e0
push 1
push ebp
call fcn.0050b420
push 0
push str.rows_inserted
push 0
push 0
push ebp
call fcn.0050b490
add esp, 0x2c
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.0050b930
mov ecx, dword [esp + 0xb4]
push ecx
push esi
call fcn.00508080
mov edx, dword [esp + 0xc0]
push edx
push esi
call fcn.0050b890
mov eax, dword [esp + 0xcc]
push eax
push esi
call fcn.0050b9c0
mov ecx, dword [esp + 0x70]
push ecx
push esi
call fcn.004ee360
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret