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

Disassembly:
sub esp, 0xa4
xor eax, eax
push ebx
mov ebx, dword [esp + 0xac]
mov ecx, dword [ebx]
push esi
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x13], al
mov byte [esp + 0x1a], al
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
cmp dword [ebx + 0x40], eax
jne 0x51eeed
mov edx, ecx
cmp byte [edx + 0x41], al
jne 0x51eeed
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x51dfb7
mov ecx, 0x100
test word [eax + 6], cx
je 0x51dfb7
cmp dword [eax + 0x34], 0
jne 0x51dfb7
mov edx, dword [eax]
push 1
push eax
mov dword [eax], 0
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x48], edx
call fcn.004c86f0
add esp, 0xc
mov dword [esp + 0xbc], 0
mov ecx, dword [esp + 0xb8]
cmp dword [ecx + 0x10], 0
je 0x51eeed
push ebx
mov eax, ecx
call fcn.004f1bc0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x51eeed
push ebp
mov ebp, dword [esp + 0x34]
mov edi, eax
mov esi, dword [edi + 0x40]
mov ecx, ebp
call fcn.004c86c0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
shl eax, 4
mov eax, dword [eax + edx]
push eax
mov eax, dword [edi]
push 0
push eax
push 0x12
mov eax, ebx
call fcn.004e4090
add esp, 0x10
test eax, eax
jne 0x51eeec
mov esi, edi
mov al, byte [esi + 0x2a]
shr al, 5
lea ecx, [esp + 0x4c]
push ecx
and al, 1
mov byte [esp + 0x2f], al
push 0
push 0x6c
mov edx, esi
mov eax, ebx
call fcn.004c8d50
xor edx, edx
cmp dword [esi + 0xc], edx
mov dword [esp + 0x80], eax
setne dl
push esi
mov eax, ebx
mov dword [esp + 0x70], edx
call fcn.005043f0
add esp, 0x10
test eax, eax
jne 0x51eeec
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
mov eax, ebx
call fcn.004e50b0
add esp, 4
test eax, eax
jne 0x51eeec
mov edi, ebx
call fcn.004d8f30
mov ebp, eax
test ebp, ebp
je 0x51eeec
cmp byte [ebx + 0x12], 0
jne 0x51e091
or dword [ebp + 0x58], 4
cmp dword [esp + 0xc0], 0
jne 0x51e0a6
cmp dword [esp + 0x74], 0
jne 0x51e0a6
xor eax, eax
jmp 0x51e0ab
mov eax, 1
mov edi, dword [esp + 0x24]
push eax
mov ecx, edi
mov edx, ebx
call fcn.00508bd0
mov esi, dword [esp + 0xc8]
add esp, 4
test esi, esi
jne 0x51e0ed
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
push edi
push ecx
push edx
push ebx
call fcn.00508f00
add esp, 0x10
test eax, eax
jne 0x51ee7f
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, ebx
call fcn.004d32c0
movsx edx, word [edi + 0x22]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [edx + eax + 1]
add esp, 8
mov dword [ebx + 0x48], eax
test byte [edi + 0x2a], 0x10
mov dword [esp + 0x64], ecx
mov dword [esp + 0x48], ecx
je 0x51e12d
inc ecx
inc eax
mov dword [esp + 0x48], ecx
mov dword [ebx + 0x48], eax
mov al, byte [edi + 0x2a]
shr al, 7
not al
inc ecx
and al, 1
mov dword [esp + 0x68], ecx
mov byte [esp + 0x1f], al
test esi, esi
je 0x51e219
xor eax, eax
cmp dword [esi + 4], eax
jle 0x51e160
nop
mov ecx, dword [esi]
mov dword [ecx + eax*8 + 4], 0xffffffff
inc eax
cmp eax, dword [esi + 4]
jl 0x51e150
cmp dword [esi + 4], 0
mov dword [esp + 0x18], 0
jle 0x51e219
mov edx, dword [esp + 0x10]
movsx eax, word [edx + 0x22]
xor esi, esi
mov dword [esp + 0x20], eax
test eax, eax
jle 0x51e1c7
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx*8]
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [eax]
mov dword [esp + 0x78], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x78]
push edx
push eax
call fcn.004bf990
add esp, 8
test eax, eax
je 0x51e3c8
inc esi
add edi, 0x18
cmp esi, dword [esp + 0x20]
jl 0x51e1a5
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
movsx edx, word [ecx + 0x22]
cmp esi, edx
jl 0x51e204
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov esi, dword [ecx + edi*8]
call fcn.004c6d60
test eax, eax
je 0x51e3f5
cmp byte [esp + 0x2b], 0
jne 0x51e3f5
mov dword [esp + 0x38], edi
mov byte [esp + 0x1f], 0
mov edx, dword [esp + 0xc4]
inc edi
cmp edi, dword [edx + 4]
mov dword [esp + 0x18], edi
jl 0x51e172
xor eax, eax
cmp dword [esp + 0xc0], eax
je 0x51e428
inc dword [ebx + 0x48]
mov esi, dword [ebp + 0x20]
mov edi, dword [ebx + 0x48]
inc esi
push esi
push eax
push edi
push 0x11
push ebp
call fcn.004cf760
movzx edx, byte [esp + 0x33]
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
and edx, dword [esp + 0x7c]
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], edx
mov byte [esp + 0x94], 0xd
mov dword [esp + 0x98], edi
mov byte [esp + 0x95], 0
movsx ecx, word [eax + 0x22]
mov eax, dword [esp + 0xd4]
lea edx, [esp + 0x94]
push edx
push eax
push ebx
mov dword [esp + 0xac], ecx
call fcn.0050f700
mov ecx, dword [esp + 0xa8]
add esp, 0x20
mov dword [esp + 0x50], ecx
test eax, eax
jne 0x51eeec
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x41], al
jne 0x51eeec
cmp dword [ebx + 0x40], eax
jne 0x51eeec
push eax
push eax
push edi
push 0x12
push ebp
call fcn.004cf760
add esp, 0x14
lea ecx, [esi - 1]
mov eax, ebp
call fcn.004cf9b0
cmp dword [esp + 0x74], 0
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
jne 0x51e30e
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edi
push eax
mov eax, ebx
call fcn.004dd090
add esp, 8
test eax, eax
je 0x51e49b
mov esi, dword [ebx + 0x44]
lea ecx, [esi + 1]
mov eax, ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x3c], esi
mov dword [ebx + 0x44], ecx
call fcn.004c7150
mov edi, eax
mov eax, ebx
call fcn.004c7150
mov edx, dword [esp + 0x20]
push 0
push edx
push esi
push 0x3a
push ebp
mov dword [esp + 0x38], eax
call fcn.004cf760
mov eax, dword [esp + 0x98]
push 0
push 0
push eax
push 0x14
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
push edi
push ecx
push edx
push 0x32
push ebp
mov dword [esp + 0x94], eax
call fcn.004cf760
mov eax, dword [esp + 0x60]
push 0
push eax
push esi
push 0x54
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x74]
add esp, 0x50
push ecx
push edi
push esi
push 0x5f
push ebp
call fcn.004cf760
mov esi, dword [esp + 0x6c]
push 0
push esi
push 0
push 0xe
push ebp
call fcn.004cf760
add esp, 0x28
mov ecx, esi
mov eax, ebp
call fcn.004cf9b0
mov esi, edi
mov edx, ebx
call fcn.004c7170
mov esi, dword [esp + 0x24]
call fcn.004c7170
jmp 0x51e497
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov dword [ecx + 4], esi
cmp edi, esi
je 0x51e3dc
mov byte [esp + 0x1f], 0
mov edx, dword [esp + 0x10]
movsx eax, word [edx + 0x20]
cmp esi, eax
jne 0x51e1cb
mov dword [esp + 0x38], edi
jmp 0x51e1cb
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*8]
mov ecx, dword [esp + 0xbc]
push eax
push 0
push ecx
push str.table__S_has_no_column_named__s
mov edi, ebx
call fcn.004e0360
add esp, 0x10
mov byte [ebx + 0x11], 1
jmp 0x51eeec
mov edi, dword [esp + 0x40]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x3c], 0xffffffff
cmp edi, eax
je 0x51e493
mov edx, dword [edi]
lea eax, [esp + 0x94]
mov dword [esp + 0x20], edx
call fcn.004f0dc0
test eax, eax
jne 0x51eeec
jmp 0x51e497
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x10]
cmp dword [esp + 0xc4], 0
jne 0x51e4b4
cmp dword [esp + 0x20], 0
jle 0x51e4b4
movsx eax, word [edi + 0x20]
mov dword [esp + 0x38], eax
movsx ecx, word [edi + 0x22]
xor esi, esi
xor edx, edx
cmp ecx, 2
mov dword [esp + 0x18], esi
jl 0x51e501
mov eax, dword [edi + 4]
add ecx, 0xfffffffe
shr ecx, 1
add eax, 0x2f
inc ecx
lea edi, [ecx + ecx]
mov dword [esp + 0x18], edi
jmp 0x51e4e0
movzx edi, byte [eax - 0x18]
shr edi, 1
and edi, 1
add edx, edi
movzx edi, byte [eax]
shr edi, 1
and edi, 1
add esi, edi
add eax, 0x30
sub ecx, 1
jne 0x51e4e0
mov edi, dword [esp + 0x10]
movsx ecx, word [edi + 0x22]
cmp dword [esp + 0x18], ecx
jge 0x51e521
mov eax, dword [esp + 0x18]
mov edi, dword [edi + 4]
lea eax, [eax + eax*2]
movzx eax, byte [edi + eax*8 + 0x17]
shr eax, 1
and eax, 1
jmp 0x51e525
mov eax, dword [esp + 0x30]
add esi, edx
mov edx, dword [esp + 0xc4]
add eax, esi
test edx, edx
jne 0x51e566
mov esi, dword [esp + 0x20]
test esi, esi
je 0x51e586
mov edx, ecx
sub edx, eax
cmp esi, edx
je 0x51e586
mov ecx, esi
push ecx
push edx
mov edx, dword [esp + 0xc4]
push 0
push edx
push str.table__S_has__d_columns_but__d_values_were_supplied
mov edi, ebx
call fcn.004e0360
add esp, 0x14
jmp 0x51eeec
mov eax, dword [edx + 4]
cmp dword [esp + 0x20], eax
je 0x51e586
push eax
mov eax, dword [esp + 0x24]
push eax
push str._d_values_for__d_columns
mov edi, ebx
call fcn.004e0360
jmp 0x51eee9
mov ecx, dword [esp + 0x34]
test byte [ecx + 0x18], 0x80
je 0x51e5ad
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
push 0
push eax
push 0
push 0x17
push ebp
mov dword [esp + 0x90], eax
call fcn.004cf760
add esp, 0x14
cmp dword [esp + 0x60], 0
jne 0x51e613
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x38
push ecx
push ebx
call fcn.004f9dd0
mov esi, dword [esp + 0x54]
mov edi, eax
lea edx, [edi*4 + 4]
push 0
push edx
call fcn.004cb940
add esp, 0x28
mov dword [esp + 0x5c], eax
test eax, eax
je 0x51eeec
xor eax, eax
test edi, edi
jle 0x51e613
mov edx, dword [esp + 0x5c]
mov esi, 1
add dword [ebx + 0x48], esi
mov ecx, dword [ebx + 0x48]
mov dword [edx + eax*4], ecx
add eax, esi
cmp eax, edi
jl 0x51e604
cmp byte [esp + 0x17], 0
je 0x51e637
mov eax, dword [esp + 0x3c]
push 0
push 0
push eax
push 0x6e
push ebp
call fcn.004cf760
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x84], ecx
jmp 0x51e65c
cmp dword [esp + 0xc0], 0
je 0x51e666
mov edx, dword [esp + 0x84]
push 0
push 0
push edx
push 0x14
push ebp
call fcn.004cf760
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
add esp, 0x14
mov eax, ebp
call fcn.004cf7f0
test byte [esp + 0x4c], 1
mov dword [esp + 0x24], eax
je 0x51e87d
mov eax, dword [esp + 0x10]
movsx esi, word [eax + 0x22]
inc esi
mov ecx, ebx
call fcn.004c71a0
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], esi
test eax, eax
jge 0x51e6ac
push 0
push esi
push 0xffffffffffffffff
push 0x17
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51e713
cmp byte [esp + 0x17], 0
push esi
je 0x51e6c7
mov ecx, dword [esp + 0x40]
push eax
push ecx
push 0x30
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51e6de
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*8]
push edx
push ebx
call fcn.0051b9e0
add esp, 0xc
push 0
push 0
push esi
push 0x4d
push ebp
call fcn.004cf760
push 0
push esi
push 0xffffffffffffffff
push 0x17
push ebp
mov edi, eax
call fcn.004cf760
mov ecx, edi
mov eax, ebp
call fcn.004cf9b0
push 0
push 0
push esi
push 0x27
push ebp
call fcn.004cf760
add esp, 0x3c
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edi, edi
cmp ax, word [ecx + 0x22]
jge 0x51e811
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
lea esi, [ecx + 1]
sub eax, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x78], eax
lea ecx, [ecx]
cmp dword [esp + 0xc4], 0
je 0x51e773
mov edx, dword [esp + 0xc4]
mov ecx, dword [edx + 4]
xor edi, edi
test ecx, ecx
jle 0x51e773
mov eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [esp + 0x78]
add edx, esi
cmp dword [eax], edx
je 0x51e773
inc edi
add eax, 8
cmp edi, ecx
jl 0x51e761
mov cl, byte [esp + 0x17]
test cl, cl
jne 0x51e782
cmp dword [esp + 0x40], 0
je 0x51e792
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x51e7ae
cmp edi, dword [eax + 4]
jl 0x51e7ae
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx + 4]
push esi
push eax
push ebx
call fcn.0051b9e0
add esp, 0xc
jmp 0x51e7e6
test cl, cl
je 0x51e7c6
mov ecx, dword [esp + 0x3c]
push esi
push edi
push ecx
push 0x30
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51e7e6
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [ecx + 4]
lea eax, [edi + edi*2]
mov esi, dword [edx + eax*8]
mov eax, ebx
call fcn.0051ba40
mov esi, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0xc4], 0
jne 0x51e7f1
inc edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
movsx edx, word [ecx + 0x22]
add dword [esp + 0x18], 0x18
inc esi
add eax, esi
cmp eax, edx
mov dword [esp + 0x4c], esi
jl 0x51e740
cmp dword [esp + 0x60], 0
jne 0x51e82b
mov eax, dword [esp + 0x30]
inc eax
push eax
mov eax, dword [esp + 0x14]
push ebp
call fcn.004d8c40
add esp, 8
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
movsx eax, word [edi + 0x22]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0xc8]
push ecx
push edx
mov edx, dword [esp + 0x7c]
mov ecx, esi
sub ecx, eax
dec ecx
push ecx
push edi
push 1
push 0
push 0x6c
push edx
push ebx
call fcn.00520ec0
movsx edi, word [edi + 0x22]
inc edi
push esi
mov eax, edi
mov esi, ebx
call fcn.004c6f00
add esp, 0x28
cmp edi, dword [ebx + 0x38]
jle 0x51e87d
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], eax
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x38]
jne 0x51ecfc
mov esi, dword [esp + 0x10]
test byte [esi + 0x2a], 0x10
je 0x51e8aa
mov ecx, dword [esp + 0x64]
push 0
push ecx
push 0
push 0x1a
push ebp
call fcn.004cf760
add esp, 0x14
test edi, edi
jl 0x51e9be
cmp byte [esp + 0x17], 0
mov esi, dword [esp + 0x48]
je 0x51e91b
mov edx, dword [esp + 0x3c]
push esi
push edi
push edx
push 0x30
push ebp
call fcn.004cf760
add esp, 0x14
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x10
push 0
jne 0x51e9a2
push 0
push esi
push 0x4d
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
push ecx
push esi
push edx
push 0x54
push ebp
mov edi, eax
call fcn.004cf760
add esp, 0x28
mov ecx, edi
mov eax, ebp
call fcn.004cf9b0
mov edi, dword [esp + 0x38]
push 0
push 0
push esi
push 0x27
jmp 0x51e9f4
cmp dword [esp + 0xc0], 0
je 0x51e933
mov eax, dword [esp + 0x50]
push 0
push esi
add eax, edi
push eax
push 0x1f
jmp 0x51e8c6
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
lea ecx, [edi + edi*2]
mov ecx, dword [eax + ecx*8]
push esi
push ecx
push ebx
call fcn.0051b9e0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp]
add esp, 0xc
dec eax
cmp byte [edx + 0x41], 0
je 0x51e95f
mov eax, 0x5a2838
jmp 0x51e970
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
test eax, eax
je 0x51e8cf
cmp byte [eax], 0x1a
jne 0x51e8cf
mov edx, dword [esp + 0x10]
test byte [edx + 0x2a], 0x10
jne 0x51e8cf
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x1e], 1
mov byte [eax], 0x54
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
jmp 0x51e9fd
mov eax, dword [ebp + 0x20]
add eax, 2
push eax
push esi
push 0x4c
push ebp
call fcn.004cf760
add esp, 0x14
push 0
push 0
push esi
push 0x27
jmp 0x51e9f4
test byte [esi + 0x2a], 0x10
jne 0x51e9e9
cmp byte [esp + 0x2b], 0
jne 0x51e9e9
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push esi
push edx
push 0x54
push ebp
call fcn.004cf760
mov byte [esp + 0x32], 1
jmp 0x51e9fa
mov esi, dword [esp + 0x48]
push 0
push esi
push 0
push 0x1a
push ebp
call fcn.004cf760
add esp, 0x14
cmp dword [esp + 0x2c], 0
jle 0x51ea1d
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 8]
push 0
push esi
push eax
push 0x8a
push ecx
call fcn.004cf760
add esp, 0x14
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor edx, edx
cmp dx, word [eax + 0x22]
jge 0x51eb9f
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x2c], edx
movsx edx, word [eax + 0x20]
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jne 0x51ea67
push 0
push 0
push edi
push 0x1b
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51eb7c
test esi, esi
jne 0x51eaca
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x2c]
test byte [eax + edx + 0x17], 2
je 0x51eac2
inc dword [esp + 0x30]
cmp byte [ebx + 0x17], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x2c]
mov esi, dword [edx + eax + 4]
je 0x51eb6a
push esi
call fcn.004d1b10
add esp, 4
test eax, eax
je 0x51eb6a
push 0
mov ecx, esi
push edi
mov esi, ebx
call fcn.004db860
mov esi, dword [esp + 0xcc]
add esp, 8
jmp 0x51eb7c
mov eax, ecx
sub eax, dword [esp + 0x30]
jmp 0x51eaf3
mov edx, dword [esi + 4]
xor eax, eax
test edx, edx
jle 0x51eaf7
mov ecx, dword [esi]
mov esi, dword [esp + 0x18]
add ecx, 4
lea esp, [esp]
cmp dword [ecx], esi
je 0x51eaec
inc eax
add ecx, 8
cmp eax, edx
jl 0x51eae0
mov esi, dword [esp + 0xc4]
test eax, eax
jl 0x51ea7d
cmp dword [esp + 0x20], 0
je 0x51ea7d
test esi, esi
je 0x51eb0f
cmp eax, dword [esi + 4]
jge 0x51ea7d
cmp byte [esp + 0x17], 0
je 0x51eb2a
push edi
push eax
mov eax, dword [esp + 0x44]
push eax
push 0x30
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51eb7c
cmp dword [esp + 0xc0], 0
je 0x51eb53
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x68]
je 0x51eb7c
push 0
mov edx, ecx
push edi
add eax, edx
push eax
push 0x20
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x51eb7c
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*8]
push edi
push eax
push ebx
call fcn.0051b9e0
jmp 0x51eb79
push edi
push esi
push ebx
call fcn.0051b9e0
mov esi, dword [esp + 0xd0]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movsx edx, word [eax + 0x22]
add dword [esp + 0x2c], 0x18
inc ecx
inc edi
cmp ecx, edx
mov dword [esp + 0x18], ecx
jl 0x51ea46
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x10
je 0x51ec80
mov esi, eax
mov edi, dword [esi + 0x38]
test edi, edi
je 0x51ebcb
mov eax, dword [esp + 0x34]
lea ebx, [ebx]
cmp dword [edi], eax
je 0x51ebcb
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x51ebc0
push esi
mov eax, ebx
call fcn.004d3b40
movsx eax, word [esi + 0x22]
mov ecx, dword [esp + 0x68]
push ecx
add eax, 2
push eax
push 1
push 0xd
push ebp
call fcn.004cf760
mov esi, dword [ebp + 4]
mov ecx, dword [ebp]
add esp, 0x18
test esi, esi
je 0x51ec3a
cmp byte [ecx + 0x41], 0
jne 0x51ec3a
test eax, eax
jge 0x51ec05
mov eax, dword [ebp + 0x20]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [esi + edx*4 + 1]
lea esi, [esi + edx*4]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
add esp, 4
mov dword [esi + 0x10], 0
test edi, edi
jne 0x51ec30
mov dword [esi + 0x10], edi
mov byte [esi + 1], 0
jmp 0x51ec3a
mov dword [esi + 0x10], edi
mov byte [esi + 1], 0xf6
inc dword [edi + 0xc]
mov ecx, dword [esp + 0xc8]
cmp ecx, 0xa
jne 0x51ec4b
mov ecx, 2
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp]
dec eax
cmp byte [edx + 0x41], 0
je 0x51ec5f
mov eax, 0x5a2838
jmp 0x51ec68
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax + 3], cl
mov eax, dword [ebx + 0x19c]
test eax, eax
jne 0x51ec77
mov eax, ebx
mov byte [eax + 0x15], 1
jmp 0x51ecfc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc8]
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x58]
push eax
push ecx
push edx
mov edx, dword [esp + 0x60]
test edi, edi
mov edi, dword [esp + 0x1c]
setge al
movzx ecx, al
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x6c]
push 0
push esi
push edx
push eax
push ecx
push edi
push ebx
call fcn.0051bf70
push 0
push 0
push esi
push 0
push edi
push ebx
call fcn.0050f1a0
movzx eax, byte [esp + 0x62]
mov ecx, dword [esp + 0xa0]
add esp, 0x44
xor edx, edx
cmp dword [esp + 0x58], edx
sete dl
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push 0
push ecx
push esi
push edx
push eax
push edi
push ebx
call fcn.004dd1a0
add esp, 0x24
mov ecx, dword [esp + 0x34]
test byte [ecx + 0x18], 0x80
je 0x51ed1a
mov edx, dword [esp + 0x7c]
push 0
push 1
push edx
push 0x26
push ebp
call fcn.004cf760
add esp, 0x14
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x10]
test ecx, ecx
je 0x51ed52
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0x6c]
push edx
movsx edx, word [edi + 0x22]
sub eax, edx
sub eax, 2
push eax
push edi
push 2
push 0
push 0x6c
push ecx
push ebx
call fcn.00520ec0
add esp, 0x24
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x51ed6e
mov edx, dword [esp + 0x24]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
cmp byte [esp + 0x17], 0
mov dword [ecx + 0x5c], eax
je 0x51eddc
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
push 0
push ecx
push esi
push 8
push ebp
call fcn.004cf760
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
dec edx
mov dword [eax + 0x5c], edx
mov eax, dword [esp + 0x80]
mov ecx, dword [ebp + 0x20]
add esp, 0x14
test eax, eax
jge 0x51edae
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x41], 0
je 0x51edbe
mov eax, 0x5a2838
jmp 0x51edc7
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
push 0
push 0
push esi
push 0x3e
push ebp
mov dword [eax + 8], ecx
call fcn.004cf760
add esp, 0x14
jmp 0x51ee31
cmp dword [esp + 0xc0], 0
je 0x51ee31
mov eax, dword [esp + 0x70]
push 0
push eax
push 0
push 0xe
push ebp
call fcn.004cf760
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x80]
dec ecx
add esp, 0x14
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp + 0x20]
test eax, eax
jge 0x51ee15
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x41], 0
je 0x51ee25
mov eax, 0x5a2838
jmp 0x51ee2e
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
test byte [edi + 0x2a], 0x10
jne 0x51ee7f
cmp dword [esp + 0x60], 0
jne 0x51ee7f
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x54]
jge 0x51ee58
push 0
push 0
push eax
push 0x3e
push ebp
call fcn.004cf760
add esp, 0x14
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
test esi, esi
je 0x51ee7f
mov edi, dword [esp + 0x54]
push 0
push 0
push edi
push 0x3e
push ebp
call fcn.004cf760
mov esi, dword [esi + 0x14]
add esp, 0x14
inc edi
test esi, esi
jne 0x51ee67
cmp byte [ebx + 0x12], 0
jne 0x51ee97
cmp dword [ebx + 0x1a0], 0
jne 0x51ee97
push ebx
call fcn.004f9b60
add esp, 4
mov ecx, dword [esp + 0x34]
test byte [ecx + 0x18], 0x80
je 0x51eeec
cmp byte [ebx + 0x12], 0
jne 0x51eeec
cmp dword [ebx + 0x1a0], 0
jne 0x51eeec
mov edx, dword [esp + 0x7c]
push 0
push 1
push edx
push 0x22
push ebp
call fcn.004cf760
push 1
push ebp
call fcn.004d6600
mov eax, dword [ebp]
add esp, 0x1c
cmp byte [eax + 0x41], 0
jne 0x51eeec
mov ecx, dword [ebp + 0x10]
push 0
push 1
push str.rows_inserted
or eax, 0xffffffff
call fcn.004da840
add esp, 0xc
pop ebp
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x30]
push ecx
mov eax, esi
call fcn.004c7a60
mov edx, dword [esp + 0x40]
push edx
push esi
call fcn.004d19a0
mov eax, dword [esp + 0xc8]
push 1
push eax
push esi
call fcn.004c86f0
mov edi, dword [esp + 0xd8]
add esp, 0x18
call fcn.004c78c0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x51ef87
test esi, esi
je 0x51ef7e
cmp dword [esi + 0x208], 0
je 0x51ef50
mov ecx, esi
call fcn.004bf640
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
cmp eax, dword [esi + 0x114]
jb 0x51ef7e
cmp eax, dword [esi + 0x118]
jae 0x51ef7e
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
pop edi
mov dword [esi + 0x110], eax
pop esi
pop ebx
add esp, 0xa4
ret
push eax
call fcn.004bf5d0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0xa4
ret