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

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
push edi
mov eax, dword [ebx + 8]
mov ebp, ecx
test al, 1
je 0x787738
lea eax, [esp + 0xac]
mov word [esp + 0x18], 0x103
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.Unfinished_range_
push eax
call fcn.00408a2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc
shr eax, 1
mov dword [esp + 0x3c], eax
cmp eax, 1
jae 0x787771
lea eax, [esp + 0xac]
mov word [esp + 0x18], 0x103
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.It_should_have_at_least_one_range_
push eax
call fcn.00408a2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc
push 1
push 1
lea ecx, [esp + 0x6c]
call fcn.00414ce5
xor edi, edi
xor eax, eax
mov dword [esp + 0x40], eax
sub eax, dword [ebx + 8]
lea ecx, [ebx + eax*4]
mov eax, dword [ecx]
cmp byte [eax], 1
jne 0x787d9d
test eax, eax
je 0x787d9d
mov esi, dword [eax + 0x80]
cmp byte [esi + 8], 0xd
jne 0x787d9d
mov ecx, dword [ecx + 4]
cmp byte [ecx], 1
jne 0x787d93
test ecx, ecx
je 0x787d93
mov ecx, dword [ecx + 0x80]
cmp byte [ecx + 8], 0xd
jne 0x787d93
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x787d66
cmp eax, dword [esp + 0xb0]
jne 0x787d66
mov eax, dword [ecx + 0x18]
add ecx, 0x10
mov dword [esp + 0x34], eax
cmp eax, 0x40
ja 0x787808
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x787812
push ecx
lea ecx, [esp + 0x30]
call fcn.00406ffa
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x10]
mov dword [esp + 0x24], eax
cmp eax, 0x40
ja 0x787830
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x78783a
push ecx
lea ecx, [esp + 0x20]
call fcn.00406ffa
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx + 8], eax
cmp dword [esp + 0x44], 0x40
ja 0x78785c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x787868
lea eax, [esp + 0x3c]
mov ecx, edx
push eax
call fcn.00406ffa
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx + 8], eax
cmp dword [esp + 0x44], 0x40
ja 0x78788a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x787896
lea eax, [esp + 0x3c]
mov ecx, edx
push eax
call fcn.00406ffa
lea ecx, [esp + 0x64]
call fcn.0040e70a
lea ecx, [esp + 0x44]
call fcn.00410feb
test al, al
jne 0x787cf1
lea ecx, [esp + 0x44]
call fcn.004115ea
test al, al
jne 0x787cf1
test edi, edi
je 0x78795e
push 0
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x50]
call fcn.00406433
mov ecx, eax
call fcn.00410feb
test al, al
sete bl
cmp dword [esp + 0x9c], 0x40
jbe 0x787906
push dword [esp + 0x94]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x8c], 0x40
jbe 0x78791f
push dword [esp + 0x84]
call fcn.0040dae4
add esp, 4
test bl, bl
jne 0x787b17
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
call fcn.00412148
test eax, eax
jle 0x787b0a
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0076e420
add esp, 8
test al, al
jne 0x787afd
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx + 8], eax
cmp dword [esp + 0x44], 0x40
ja 0x787980
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x78798c
lea eax, [esp + 0x3c]
mov ecx, edx
push eax
call fcn.00406ffa
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx + 8], eax
cmp dword [esp + 0x44], 0x40
ja 0x7879ae
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x7879ba
lea eax, [esp + 0x3c]
mov ecx, edx
push eax
call fcn.00406ffa
lea ecx, [esp + 0xa4]
call fcn.0040e70a
mov esi, eax
lea eax, [esp + 0x64]
cmp eax, esi
je 0x7879fe
cmp dword [esp + 0x6c], 0x40
jbe 0x7879e3
push dword [esp + 0x64]
call fcn.0040dae4
add esp, 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x6c], eax
mov dword [esi + 8], 0
add esi, 0x10
lea eax, [esp + 0x74]
cmp eax, esi
je 0x787a37
cmp dword [esp + 0x7c], 0x40
jbe 0x787a1c
push dword [esp + 0x74]
call fcn.0040dae4
add esp, 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x7c], eax
mov dword [esi + 8], 0
cmp dword [esp + 0x9c], 0x40
jbe 0x787a50
push dword [esp + 0x94]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x8c], 0x40
jbe 0x787a69
push dword [esp + 0x84]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x5c], 0x40
jbe 0x787a7c
push dword [esp + 0x54]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x4c], 0x40
jbe 0x787a8f
push dword [esp + 0x44]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x24], 0x40
jbe 0x787aa2
push dword [esp + 0x1c]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x34], 0x40
jbe 0x787ab5
push dword [esp + 0x2c]
call fcn.0040dae4
add esp, 4
mov eax, dword [esp + 0x40]
inc edi
mov ecx, dword [esp + 0x3c]
add eax, 2
mov dword [esp + 0x40], eax
cmp edi, ecx
jb 0x787786
cmp ecx, 2
jbe 0x787dda
mov eax, dword [ebx + 8]
mov ecx, ebx
shl eax, 2
sub ecx, eax
mov eax, dword [ecx]
xor ecx, ecx
cmp byte [eax], 1
cmovne eax, ecx
test eax, eax
je 0x787b24
mov eax, dword [eax + 0x80]
cmp byte [eax + 8], 0xd
cmovne eax, ecx
jmp 0x787b26
mov dword [esp + 0x10], str.Intervals_are_contiguous
jmp 0x787cf9
mov dword [esp + 0x10], str.Intervals_are_not_in_order
jmp 0x787cf9
mov dword [esp + 0x10], str.Intervals_are_overlapping
jmp 0x787cf9
xor eax, eax
lea ecx, [eax + 0x10]
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
cmp eax, 0x40
ja 0x787b44
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x787b4e
push ecx
lea ecx, [esp + 0x20]
call fcn.00406ffa
mov eax, dword [ebx + 8]
xor ecx, ecx
shl eax, 2
sub ebx, eax
mov eax, dword [ebx + 4]
cmp byte [eax], 1
cmovne eax, ecx
test eax, eax
je 0x787b74
mov eax, dword [eax + 0x80]
cmp byte [eax + 8], 0xd
cmovne eax, ecx
jmp 0x787b76
xor eax, eax
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x10]
mov dword [esp + 0x34], edx
cmp edx, 0x40
ja 0x787b94
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x787ba2
push ecx
lea ecx, [esp + 0x30]
call fcn.00406ffa
mov edx, dword [esp + 0x34]
sub esp, 0x10
mov esi, esp
mov dword [esi + 8], edx
cmp edx, 0x40
ja 0x787bbe
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x787bca
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00406ffa
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx + 8], eax
cmp eax, 0x40
ja 0x787bea
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x787bf6
lea eax, [esp + 0x3c]
mov ecx, edx
push eax
call fcn.00406ffa
lea ecx, [esp + 0x64]
call fcn.0040e70a
push 0
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x50]
call fcn.00406433
mov ecx, eax
call fcn.00410feb
test al, al
sete bl
cmp dword [esp + 0x9c], 0x40
jbe 0x787c3c
push dword [esp + 0x94]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x8c], 0x40
jbe 0x787c55
push dword [esp + 0x84]
call fcn.0040dae4
add esp, 4
test bl, bl
je 0x787c63
mov dword [esp + 0x10], str.Intervals_are_overlapping
jmp 0x787c81
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0076e420
add esp, 8
test al, al
je 0x787c9c
mov dword [esp + 0x10], str.Intervals_are_contiguous
lea eax, [esp + 0xac]
mov word [esp + 0x18], 0x103
push eax
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00408a2b
cmp dword [esp + 0x5c], 0x40
jbe 0x787caf
push dword [esp + 0x54]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x4c], 0x40
jbe 0x787cc2
push dword [esp + 0x44]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x34], 0x40
jbe 0x787cd5
push dword [esp + 0x2c]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x24], 0x40
jbe 0x787dda
push dword [esp + 0x1c]
call fcn.0040dae4
add esp, 4
jmp 0x787dda
mov dword [esp + 0x10], str.Range_must_not_be_empty_
lea eax, [esp + 0xac]
mov word [esp + 0x18], 0x103
push eax
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00408a2b
cmp dword [esp + 0x5c], 0x40
jbe 0x787d27
push dword [esp + 0x54]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x4c], 0x40
jbe 0x787d3a
push dword [esp + 0x44]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x24], 0x40
jbe 0x787d4d
push dword [esp + 0x1c]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x34], 0x40
jbe 0x787dda
push dword [esp + 0x2c]
call fcn.0040dae4
add esp, 4
jmp 0x787dda
mov eax, dword [esp + 0xa8]
mov ecx, ebp
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x14]
mov word [esp + 0x1c], 0x103
push eax
mov dword [esp + 0x18], str.Range_types_must_match_instruction_type_
call fcn.00406f19
jmp 0x787dda
mov dword [esp + 0x10], str.The_upper_limit_must_be_an_integer_
jmp 0x787da5
mov dword [esp + 0x10], str.The_lower_limit_must_be_an_integer_
mov esi, dword [ebp]
mov word [esp + 0x18], 0x103
test esi, esi
je 0x787dd6
push esi
lea ecx, [esp + 0x14]
call fcn.00415046
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x787dd0
push 0xa
mov ecx, esi
call fcn.0040c4b4
jmp 0x787dd6
mov byte [eax], 0xa
inc dword [esi + 0xc]
mov byte [ebp + 0x54], 1
cmp dword [esp + 0x7c], 0x40
jbe 0x787ded
push dword [esp + 0x74]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x6c], 0x40
jbe 0x787e00
push dword [esp + 0x64]
call fcn.0040dae4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc