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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor edx, edx
xor eax, eax
mov ecx, dword [esi]
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x6c], edx
cmp ecx, eax
mov dword [esp + 0x70], edx
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], edx
jne 0x478c8b
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0x38]
test cl, cl
jne 0x478c8b
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x478c8b
mov edx, ecx
push edx
push esi
call fcn.00475f00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x478c8b
mov eax, dword [ebx + 0x40]
mov ebp, dword [esp + 0x30]
push eax
push ebp
call fcn.00465f50
mov edx, dword [ebp + 0x10]
mov edi, eax
mov ecx, edi
shl ecx, 4
mov eax, dword [ecx + edx]
push eax
mov eax, dword [ebx]
push 0
push eax
push 0x12
push esi
call fcn.00471db0
add esp, 0x1c
test eax, eax
jne 0x478c8b
lea ecx, [esp + 0x68]
push ecx
push eax
push 0x69
push ebx
push esi
call fcn.00482650
mov ecx, dword [ebx + 0xc]
xor edx, edx
test ecx, ecx
setne dl
push ebx
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], edx
call fcn.00473890
add esp, 0x1c
test eax, eax
jne 0x478c8b
mov eax, dword [esp + 0x68]
push eax
push ebx
push esi
call fcn.00476400
add esp, 0xc
test eax, eax
jne 0x478c8b
push esi
call fcn.0047caf0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x478c8b
mov al, byte [esi + 0x12]
test al, al
jne 0x478112
push ebp
call fcn.004763b0
add esp, 4
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x478129
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x478129
xor eax, eax
jmp 0x47812e
mov eax, 1
push edi
push eax
push esi
call fcn.004755e0
mov eax, dword [esp + 0xbc]
add esp, 0xc
test eax, eax
jne 0x478167
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
push edi
push ecx
push edx
push ebx
push esi
call fcn.00479910
add esp, 0x14
test eax, eax
jne 0x478c2b
push ebx
push edi
push esi
call fcn.00478ea0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb8]
add esp, 0xc
test eax, eax
je 0x4782a7
lea ecx, [esp + 0x6c]
push ecx
push eax
push esi
call fcn.00478f50
add esp, 0xc
test eax, eax
jne 0x478c8b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x74]
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [ecx]
mov dword [esp + 0x5c], eax
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4781d9
push ebx
push edi
push 0
push esi
call fcn.00478de0
add esp, 0x10
test eax, eax
je 0x47831a
mov eax, dword [esi + 0x48]
push esi
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x38], 1
mov dword [esi + 0x48], eax
call fcn.0046c450
push esi
mov edi, eax
call fcn.0046c450
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push ecx
push edx
push 0x2a
push ebp
mov dword [esp + 0x2c], eax
call fcn.0046c410
mov eax, dword [esp + 0x88]
push eax
push 4
push ebp
call fcn.0046cea0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
push ecx
push 0x1b
push ebp
call fcn.0046cea0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x8c]
push edi
push edx
push eax
push 0x1f
push ebp
call fcn.0046ba70
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
add esp, 0x44
push ecx
push edx
push 0x38
push ebp
call fcn.0046c410
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push edi
push ecx
push 0x39
push ebp
call fcn.0046ba70
mov edx, dword [esp + 0x7c]
push edx
push 0
push 1
push ebp
call fcn.0046c410
mov eax, dword [esp + 0x7c]
push eax
push ebp
call fcn.0046c430
push edi
push esi
call fcn.0046c480
mov ecx, dword [esp + 0x58]
add esp, 0x44
push ecx
push esi
call fcn.0046c480
add esp, 8
jmp 0x47831a
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x1c], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x7c], esi
je 0x4782d1
mov eax, dword [eax]
jmp 0x4782d3
xor eax, eax
cmp eax, edi
mov dword [esp + 0x28], eax
jle 0x47831a
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [ecx + eax]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.0046fad0
add esp, 8
test eax, eax
jne 0x478c8b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
inc edi
add ecx, 0x14
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x4782df
test byte [ebx + 0x2a], 0x10
je 0x478345
movsx edi, word [ebx + 0x26]
test edi, edi
jle 0x478345
mov eax, dword [ebx + 4]
add eax, 0x16
mov cl, byte [eax]
mov edx, dword [esp + 0x24]
shr ecx, 1
and ecx, 1
add eax, 0x18
add edx, ecx
dec edi
mov dword [esp + 0x24], edx
jne 0x47832e
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x47838d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4784ba
movsx eax, word [ebx + 0x26]
sub eax, dword [esp + 0x24]
cmp ecx, eax
je 0x4784ae
mov edx, ecx
push edx
push eax
mov eax, dword [esp + 0xac]
push 0
push eax
push str.table__S_has__d_columns_but__d_values_were_supplied
push esi
call fcn.0045fa80
add esp, 0x18
jmp 0x478c8b
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, edx
je 0x4783af
mov ecx, eax
push edx
push ecx
push str._d_values_for__d_columns
push esi
call fcn.0045fa80
add esp, 0x10
jmp 0x478c8b
xor eax, eax
test edx, edx
jle 0x4783c6
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 0x4783b8
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4784ba
xor edi, edi
cmp word [ebx + 0x26], di
jle 0x478440
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
mov edx, dword [eax + ecx*8]
push edx
call fcn.00440f30
add esp, 8
test eax, eax
je 0x478423
movsx eax, word [ebx + 0x26]
mov edx, dword [esp + 0x14]
inc edi
add edx, 0x18
cmp edi, eax
mov dword [esp + 0x14], edx
jl 0x4783e5
jmp 0x478440
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [edx + eax*8 + 4], edi
movsx ecx, word [ebx + 0x24]
cmp edi, ecx
jne 0x478440
mov dword [esp + 0x20], eax
movsx edx, word [ebx + 0x26]
cmp edi, edx
mov edi, dword [esp + 0xb0]
jl 0x47846d
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*8]
push edx
call fcn.00471880
add esp, 4
test eax, eax
je 0x478483
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4783d9
jmp 0x4784ba
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx*8]
mov ecx, dword [esp + 0xa4]
push eax
push 0
push ecx
push str.table__S_has_no_column_named__s
push esi
call fcn.0045fa80
add esp, 0x14
mov byte [esi + 0x11], 1
jmp 0x478c8b
test ecx, ecx
jle 0x4784ba
movsx edx, word [ebx + 0x24]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 0x10
je 0x4784df
mov edx, dword [esi + 0x4c]
inc edx
mov eax, edx
mov dword [esi + 0x4c], edx
push eax
push 0
push 7
push ebp
mov dword [esp + 0x74], eax
call fcn.0046c410
add esp, 0x10
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x47852f
mov eax, dword [esi + 0x48]
push 0x28
push eax
push ebx
push esi
mov dword [esp + 0x48], eax
call fcn.00479860
mov edx, dword [esp + 0x40]
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
push edx
call fcn.0043fa70
add esp, 0x18
mov dword [esp + 0x40], eax
test eax, eax
je 0x478c8b
test edi, edi
jle 0x47852f
mov ecx, dword [esi + 0x4c]
add eax, 4
inc ecx
dec edi
mov dword [esi + 0x4c], ecx
mov dword [eax - 4], ecx
jne 0x47851f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x478557
mov eax, dword [esp + 0x1c]
push eax
push 0x48
push ebp
call fcn.0046cea0
push ebp
mov dword [esp + 0x60], eax
call fcn.0046cf30
add esp, 0x10
mov dword [esp + 0x4c], eax
jmp 0x478587
mov eax, dword [esp + 0xac]
test eax, eax
je 0x478587
mov ecx, dword [esp + 0x70]
push ecx
push 4
push ebp
call fcn.0046cea0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], eax
push edx
push 0x1b
push ebp
call fcn.0046cea0
add esp, 0x18
mov dword [esp + 0x50], eax
movsx ecx, word [ebx + 0x26]
mov eax, dword [esi + 0x4c]
lea edi, [eax + 1]
lea eax, [ecx + eax + 1]
mov dword [esi + 0x4c], eax
mov cl, byte [ebx + 0x2a]
test cl, 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edi
je 0x4785b1
inc edi
inc eax
mov dword [esp + 0x24], edi
mov dword [esi + 0x4c], eax
lea edx, [edi + 1]
push ebp
mov dword [esp + 0x5c], edx
call fcn.0046cec0
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x6c]
add esp, 4
test al, 1
je 0x4787a2
movsx eax, word [ebx + 0x26]
inc eax
push eax
push esi
call fcn.0046fa10
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jge 0x4785fa
push edi
push 0xffffffffffffffff
push 7
push ebp
call fcn.0046c410
add esp, 0x10
jmp 0x478667
mov eax, dword [esp + 0x34]
push edi
test eax, eax
je 0x47861a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 0x1d
push ebp
call fcn.0046ba70
add esp, 0x14
jmp 0x478638
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
push eax
push esi
call fcn.0046d170
add esp, 0xc
push edi
push 0x4a
push ebp
call fcn.0046cea0
push edi
push 0xffffffffffffffff
push 7
push ebp
mov dword [esp + 0x34], eax
call fcn.0046c410
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.0046c430
push edi
push 0x15
push ebp
call fcn.0046cea0
add esp, 0x30
xor eax, eax
cmp word [ebx + 0x26], ax
mov dword [esp + 0x10], eax
jle 0x478742
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x4786b1
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
mov dword [esp + 0x44], edx
jle 0x4786b1
mov ecx, dword [ecx]
mov edx, dword [esp + 0x10]
add ecx, 4
cmp dword [ecx], edx
je 0x4786aa
inc eax
add ecx, 8
cmp eax, dword [esp + 0x44]
jl 0x47869c
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x4786c2
cmp dword [esp + 0xa8], edx
je 0x4786cb
test ecx, ecx
je 0x4786e8
cmp eax, dword [ecx + 4]
jl 0x4786e8
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
lea eax, [edi + edx + 1]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + edx + 4]
push eax
push esi
call fcn.0046d170
jmp 0x47871f
mov ecx, dword [esp + 0x10]
test edx, edx
lea edx, [edi + ecx + 1]
push edx
je 0x478708
push eax
mov eax, dword [esp + 0x24]
push eax
push 0x1d
push ebp
call fcn.0046ba70
add esp, 0x14
jmp 0x478722
mov ecx, dword [esp + 0xac]
lea eax, [eax + eax*4]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax*4]
push eax
push esi
call fcn.00478d10
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, 0x18
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
movsx ecx, word [ebx + 0x26]
cmp eax, ecx
jl 0x47867b
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x478765
movsx edx, word [ebx + 0x26]
lea eax, [edi + 1]
push edx
push eax
push 0x1e
push ebp
call fcn.0046c410
push ebx
push ebp
call fcn.00478d60
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xb4]
movsx eax, word [ebx + 0x26]
push ecx
mov ecx, edi
sub ecx, eax
push edx
mov edx, dword [esp + 0x44]
dec ecx
push ecx
push ebx
push 1
push 0
push 0x69
push edx
push esi
call fcn.00482cc0
movsx eax, word [ebx + 0x26]
inc eax
push eax
push edi
push esi
call fcn.0046fa40
mov edi, dword [esp + 0x54]
add esp, 0x30
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x478b34
test byte [ebx + 0x2a], 0x10
je 0x4787c6
mov ecx, dword [esp + 0x48]
push ecx
push 0
push 0xa
push ebp
call fcn.0046c410
add esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4788e0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x478839
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
push edx
push eax
push 0x1d
push ebp
call fcn.0046ba70
add esp, 0x14
test byte [ebx + 0x2a], 0x10
jne 0x4788bc
push edi
push 0x4a
push ebp
call fcn.0046cea0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
push eax
push edi
push ecx
push 0x38
push ebp
call fcn.0046ba70
mov edx, dword [esp + 0x64]
push edx
push ebp
call fcn.0046c430
add esp, 0x28
push edi
push 0x15
push ebp
call fcn.0046cea0
add esp, 0xc
jmp 0x478914
mov eax, dword [esp + 0xac]
push edi
test eax, eax
je 0x47885d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
add edx, ecx
push edx
push 0xf
push ebp
call fcn.0046c410
add esp, 0x10
jmp 0x4787f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
push eax
push esi
call fcn.0046d170
push 0xffffffffffffffff
push ebp
call fcn.00478ce0
add esp, 0x14
test eax, eax
je 0x4787f0
cmp byte [eax], 0xa
jne 0x4787f0
test byte [ebx + 0x2a], 0x10
jne 0x4787f0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], 1
mov byte [eax], 0x38
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
jmp 0x478914
push ebp
call fcn.0046cf30
add eax, 2
push eax
push edi
push 0x49
push ebp
call fcn.0046c410
add esp, 0x14
push edi
push 0x15
push ebp
call fcn.0046cea0
add esp, 0xc
jmp 0x478914
test byte [ebx + 0x2a], 0x10
je 0x4788f6
push edi
push 0
push 0xa
push ebp
call fcn.0046c410
add esp, 0x10
jmp 0x478914
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push eax
push edi
push ecx
push 0x38
push ebp
call fcn.0046ba70
add esp, 0x14
mov dword [esp + 0x60], 1
mov edx, dword [esp + 0x2c]
push edi
push edx
push esi
call fcn.00478f20
xor eax, eax
add esp, 0xc
cmp word [ebx + 0x26], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
jle 0x4789b7
mov edi, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
movsx ecx, word [ebx + 0x24]
cmp eax, ecx
jne 0x47895b
push edi
push 0
push 0xa
push ebp
call fcn.0046c410
add esp, 0x10
jmp 0x478996
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x478a21
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x2c]
test byte [edx + ecx + 0x16], 2
je 0x478a1b
inc dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x2c]
push edi
mov edx, dword [eax + ecx + 4]
push edx
push esi
call fcn.0046d170
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add ecx, 0x18
inc eax
mov dword [esp + 0x2c], ecx
inc edi
movsx ecx, word [ebx + 0x26]
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
jl 0x478943
test byte [ebx + 0x2a], 0x10
je 0x478ac9
mov edx, dword [esp + 0x30]
push ebx
push edx
call fcn.004678a0
push ebx
push esi
mov edi, eax
call fcn.004842b0
movsx ecx, word [ebx + 0x26]
mov eax, dword [esp + 0x58]
push 0xfffffffffffffff6
push edi
add ecx, 2
push eax
push ecx
push 1
push 0x8c
push ebp
call fcn.0046ba30
mov eax, dword [esp + 0xe0]
add esp, 0x2c
cmp eax, 0x63
jne 0x478a06
mov eax, 2
push eax
push ebp
call fcn.0046c940
push esi
call fcn.00475630
add esp, 0xc
jmp 0x478b34
sub eax, dword [esp + 0x24]
jmp 0x478a4a
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
jle 0x478a59
mov ecx, dword [esp + 0xb0]
mov edi, dword [esp + 0x10]
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edi
je 0x478a46
inc eax
add ecx, 8
cmp eax, edx
jl 0x478a3a
mov edi, dword [esp + 0x18]
test eax, eax
jl 0x478980
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x478980
test ecx, ecx
je 0x478a72
cmp eax, dword [ecx + 4]
jge 0x478980
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x478a91
mov edx, dword [esp + 0x1c]
push edi
push eax
push edx
push 0x1d
push ebp
call fcn.0046ba70
add esp, 0x14
jmp 0x478996
mov ecx, dword [esp + 0xac]
push edi
test ecx, ecx
je 0x478ab4
mov ecx, dword [esp + 0x60]
add eax, ecx
push eax
push 0xf
push ebp
call fcn.0046c410
add esp, 0x10
jmp 0x478996
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx*4]
jmp 0x47898c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x44]
mov edi, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x28]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push 0
setge dl
push edx
push eax
push edi
push ecx
push ebx
push esi
call fcn.00479010
push edi
push 0
push ebx
push esi
call fcn.004769c0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x98]
xor edx, edx
test ecx, ecx
mov ecx, dword [esp + 0x78]
sete dl
push edx
mov edx, dword [esp + 0x74]
push eax
push 0
push ecx
push edi
push edx
push ebx
push esi
call fcn.00479730
add esp, 0x58
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 0x10
je 0x478b50
mov ecx, dword [esp + 0x64]
push 1
push ecx
push 0x14
push ebp
call fcn.0046c410
add esp, 0x10
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x478b88
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb4]
movsx ecx, word [ebx + 0x26]
push edx
push eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x44]
sub eax, ecx
sub eax, 2
push eax
push ebx
push 2
push 0
push 0x69
push edx
push esi
call fcn.00482cc0
add esp, 0x24
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.0046cf10
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x478bc9
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
push ecx
push edi
push 0x5f
push ebp
call fcn.0046c410
mov edx, dword [esp + 0x60]
push edx
push ebp
call fcn.0046c430
push edi
push 0x2d
push ebp
call fcn.0046cea0
add esp, 0x24
jmp 0x478bf1
mov eax, dword [esp + 0xac]
test eax, eax
je 0x478bf1
mov eax, dword [esp + 0x4c]
push eax
push 0
push 1
push ebp
call fcn.0046c410
mov ecx, dword [esp + 0x60]
push ecx
push ebp
call fcn.0046c430
add esp, 0x18
test byte [ebx + 0x2a], 0x10
jne 0x478c2b
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x478c2b
mov edi, dword [esp + 0x38]
push edi
push 0x2d
push ebp
call fcn.0046cea0
mov ebx, dword [ebx + 8]
add esp, 0xc
test ebx, ebx
je 0x478c2b
inc edi
push edi
push 0x2d
push ebp
call fcn.0046cea0
mov ebx, dword [ebx + 0x14]
add esp, 0xc
inc edi
test ebx, ebx
jne 0x478c17
mov al, byte [esi + 0x12]
test al, al
jne 0x478c45
mov eax, dword [esi + 0x1b4]
test eax, eax
jne 0x478c45
push esi
call fcn.00477e70
add esp, 4
mov edx, dword [esp + 0x30]
test byte [edx + 0x18], 0x10
je 0x478c8b
mov al, byte [esi + 0x12]
test al, al
jne 0x478c8b
mov eax, dword [esi + 0x1b4]
test eax, eax
jne 0x478c8b
mov eax, dword [esp + 0x64]
push 1
push eax
push 0x10
push ebp
call fcn.0046c410
push 1
push ebp
call fcn.004664c0
push 0
push str.rows_inserted
push 0
push 0
push ebp
call fcn.00466530
add esp, 0x2c
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x30]
push ecx
push esi
call fcn.00466920
mov edx, dword [esp + 0xb0]
push edx
push esi
call fcn.00462e70
mov eax, dword [esp + 0xbc]
push eax
push esi
call fcn.00466880
mov ecx, dword [esp + 0xc8]
push ecx
push esi
call fcn.004669b0
mov edx, dword [esp + 0x60]
push edx
push esi
call fcn.0043f7f0
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret