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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov dword [esp + 4], ecx
mov esi, dword [ebp + 0x20]
cmp dword [esi], 0
jne 0x66185c
lea edi, [esp + 0x28]
mov ecx, edi
push 0x187
push str.external_protobuf_src_google_protobuf_descriptor.cc
push 3
call fcn.00630740
mov ecx, edi
push str.CHECK_failed:_has_allocated__:
call fcn.0062ff70
lea ecx, [esp + 0x10]
push eax
call fcn.006300f0
mov ecx, edi
call fcn.00630770
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov ebx, dword [esi + 0x78]
lea eax, [ebx + 1]
mov dword [esi + 0x78], eax
cmp eax, dword [esi + 0x44]
jle 0x6618a5
lea edi, [esp + 0x28]
mov ecx, edi
push 0x18d
push str.external_protobuf_src_google_protobuf_descriptor.cc
push 3
call fcn.00630740
mov ecx, edi
push str.CHECK_failed:__used_____total_.template_Get_TypeToUse____:
call fcn.0062ff70
lea ecx, [esp + 0x10]
push eax
call fcn.006300f0
mov ecx, edi
call fcn.00630770
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.0076ace0
test al, al
je 0x661b5d
lea ebx, [ebx + ebx*2]
shl ebx, 4
mov eax, dword [esp + 8]
lea edi, [eax + ebx]
lea ecx, [esp + 0x28]
push esi
call fcn.004a1c00
mov dword [esp + 0xc], edi
mov ecx, edi
lea eax, [esp + 0x28]
push eax
call fcn.004a11c0
test byte [esp + 0x28], 1
je 0x6618f4
push dword [esp + 0x30]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 8]
cmp dword [eax + ebx + 0x20], 0
mov eax, dword [ebp + 8]
jle 0x6619e7
mov ebx, dword [ebp + 0x18]
lea ecx, [esp + 0x28]
push eax
call fcn.0051f860
lea ecx, [esp + 0x34]
push dword [ebp + 0xc]
call fcn.0051f860
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, eax
sub esi, ecx
sub eax, ecx
je 0x66198d
js 0x661c98
sar esi, 2
push eax
call fcn.0051c3d0
add esp, 4
mov edi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
lea eax, [eax + esi*4]
mov dword [esp + 0x48], eax
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
sub esi, eax
test esi, esi
jle 0x66198d
push esi
push eax
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 4]
lea ecx, [eax + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x28]
call fcn.006593d0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x6619c1
mov dword [esp + 0x44], eax
push eax
call fcn.0051c570
add esp, 4
test byte [esp + 0x34], 1
je 0x6619d4
push dword [esp + 0x3c]
call fcn.0051c570
add esp, 4
test byte [esp + 0x28], 1
je 0x6619e7
push dword [esp + 0x30]
call fcn.0051c570
add esp, 4
mov eax, dword [esi + 4]
test al, 1
jne 0x661c84
call fcn.00530250
mov ecx, dword [esp + 4]
mov edx, dword [eax]
mov dword [esp + 0x20], eax
cmp edx, dword [eax + 4]
je 0x661c7a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ecx + 4]
movzx edx, byte [eax]
mov esi, edx
shr esi, 1
test dl, 1
lea edx, [eax + 1]
cmovne edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
cmovne esi, dword [eax + 4]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 4]
sub esp, 8
movsd xmm0, qword [esp + 0x64]
movsd qword [esp], xmm0
call fcn.0065a250
mov dword [esp + 0x58], eax
cmp byte [eax], 1
jne 0x661c7a
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
sub eax, edx
test eax, eax
jle 0x661c7a
lea edi, [esi + 0x54]
xor ebx, ebx
mov dword [esp + 0xc], edi
jmp 0x661a9e
mov edx, dword [esp + 8]
mov esi, dword [esp + 4]
inc ebx
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 4
cmp ebx, eax
mov edi, dword [esp + 0xc]
jge 0x661c7a
mov ecx, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x58]
cmp byte [edx], 1
mov eax, 0
cmove eax, edx
mov edx, ebx
shl edx, 4
mov dword [esp + 8], esi
push dword [esi + edx]
push eax
call fcn.006374d0
test eax, eax
je 0x661a80
mov ecx, dword [edi]
test ecx, ecx
je 0x661a80
mov eax, dword [eax + 0xc]
mov edx, ecx
nop word cs:[eax + eax]
lea esi, [edx + 4]
cmp dword [edx + 0x10], eax
cmovae esi, edx
cmovae edi, edx
mov edx, dword [esi]
test edx, edx
jne 0x661ae0
cmp edi, dword [esp + 0xc]
mov edx, dword [esp + 8]
je 0x661a84
cmp eax, dword [edi + 0x10]
mov esi, dword [esp + 4]
jb 0x661a88
mov edx, dword [edi + 4]
mov esi, edi
test edx, edx
je 0x661b20
nop
mov eax, edx
mov edx, dword [edx]
test edx, edx
jne 0x661b10
jmp 0x661b29
mov eax, dword [esi + 8]
cmp dword [eax], esi
mov esi, eax
jne 0x661b20
mov esi, dword [esp + 4]
cmp dword [esi + 0x50], edi
jne 0x661b35
mov dword [esi + 0x50], eax
dec dword [esi + 0x58]
push edi
push ecx
call fcn.004583d0
add esp, 8
push edi
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x661a88
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
movzx ebx, byte [edi]
test bl, 1
je 0x661b85
mov ebx, dword [edi + 4]
mov edi, dword [edi + 8]
jmp 0x661b88
shr ebx, 1
inc edi
lea esi, [ebx + 1]
cmp esi, 0xfffffff0
jae 0x661c8f
mov dword [esp + 8], edi
cmp esi, 0xb
jae 0x661bb3
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ebx, ebx
mov esi, dword [esp + 4]
jne 0x661bd7
jmp 0x661be5
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
add esi, 2
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 4]
push ebx
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
lea ebx, [esp + 0x10]
mov ecx, ebx
push 1
push 0x8d0947
call fcn.00520110
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
test al, 1
je 0x661c0d
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
jmp 0x661c10
inc edx
shr eax, 1
mov ecx, ebx
push eax
push edx
call fcn.00520110
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x28]
mov ecx, esi
push str.Uninterpreted_option_is_missing_name_or_value.
push 7
push dword [ebp + 0x10]
push eax
call fcn.00643220
test byte [esp + 0x28], 1
je 0x661c67
push dword [esp + 0x30]
call fcn.0051c570
add esp, 4
test byte [esp + 0x10], 1
je 0x661c7a
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
and eax, 0xfffffffc
add eax, 4
jmp 0x6619f7
lea ecx, [esp + 0x10]
call fcn.0051f6b0
lea ecx, [esp + 0x40]
call fcn.005256b0
int3