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

Disassembly:
push 0xd0
mov eax, 0x527399
call fcn.0051c5b5
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 4]
push 0x60
mov dword [ebp - 0xac], ebx
call fcn.004eb244
mov esi, eax
xor eax, eax
mov dword [edi + 0x34], esi
mov ecx, eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0xa8], ecx
mov word [esi + 0x30], ax
mov eax, dword [ebx + 8]
shr eax, 4
test al, 1
je 0x4f18f5
push ecx
mov ecx, dword [edi + 4]
call fcn.004fc7ed
mov ecx, dword [ebx + 0x88]
mov edx, 0x58fc88
test ecx, ecx
mov dword [ebp - 0xa8], eax
cmovne edx, ecx
mov ecx, eax
push edx
call fcn.0050bdba
mov eax, dword [ebp - 0xa8]
jmp 0x4f18fa
call fcn.0050bacc
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 4]
call fcn.004eb1df
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x38], eax
mov dword [ecx + 0x58], eax
test byte [ebx + 8], 1
jne 0x4f1947
push 0x5341f6
lea ecx, [ebp - 0x28]
call fcn.0040a318
push str.Missing_field:_FileDescriptorProto.name.
push 0xa
push ebx
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004eff87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407635
jmp 0x4f1949
xor esi, esi
mov eax, dword [ebx + 0x80]
cmp dword [eax + 0x10], esi
je 0x4f19ca
mov edx, str.proto2
mov ecx, eax
call fcn.004454d1
test al, al
jne 0x4f19ca
mov eax, dword [edi + 0x34]
mov edx, str.proto3
mov ecx, dword [ebx + 0x80]
add eax, 0x2c
mov dword [ebp - 0x90], eax
call fcn.004454d1
test al, al
mov eax, dword [ebp - 0x90]
je 0x4f1992
mov dword [eax], 3
jmp 0x4f19d4
mov dword [eax], esi
lea ecx, [ebp - 0x28]
push dword [ebx + 0x80]
mov edx, str.Unrecognized_syntax:
call fcn.004fc5f1
push eax
push 0xa
push ebx
mov dword [ebp - 4], 1
mov ecx, edi
push dword [ebx + 0x78]
call fcn.004efe16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407635
jmp 0x4f19d4
mov eax, dword [edi + 0x34]
mov dword [eax + 0x2c], 2
push dword [ebx + 0x78]
mov ecx, dword [edi + 4]
call fcn.004eb0df
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
shr eax, 1
test al, 1
mov eax, dword [edi + 4]
mov dword [ebp - 0x94], eax
je 0x4f1a0e
push dword [ebx + 0x7c]
mov ecx, eax
call fcn.004eb0df
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 4], eax
jmp 0x4f1a4c
push 0x5341f6
lea ecx, [ebp - 0x28]
call fcn.0040a318
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
push eax
call fcn.004eb0df
mov ecx, dword [ebp - 0x8c]
or dword [ebp - 4], 0xffffffff
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00407635
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edi]
mov dword [ecx + 8], eax
push ecx
mov ecx, dword [edi + 4]
call fcn.004eaf22
test al, al
jne 0x4f1a77
push str.A_file_with_this_name_is_already_in_the_pool.
push 0xa
push ebx
push dword [ebx + 0x78]
mov ecx, edi
call fcn.004eff87
xor eax, eax
jmp 0x4f2209
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x10], esi
je 0x4f1a8f
push eax
push ebx
push ecx
mov ecx, edi
call fcn.004f102f
lea ecx, [ebp - 0xbc]
call fcn.004aef70
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 4], 3
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 4]
shl eax, 2
push eax
call fcn.004eb244
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x34], eax
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
je 0x4f1b0b
mov ecx, dword [edi + 4]
call fcn.004eb193
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0xc], eax
push dword [ebx + 0x14]
mov ecx, dword [edi + 4]
call fcn.004fc851
mov edx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x38], edx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jle 0x4f1b11
shl ecx, 2
push ecx
push esi
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4f1b11
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x38], esi
lea ecx, [edi + 0x44]
call fcn.004fae30
lea ecx, [ebp - 0xc4]
call fcn.004db304
xor eax, eax
mov byte [ebp - 4], 4
mov esi, eax
cmp dword [ebx + 0x6c], eax
jle 0x4f1b5e
mov eax, dword [ebx + 0x74]
lea ecx, [ebp - 0xc4]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004fdecf
inc esi
cmp esi, dword [ebx + 0x6c]
jl 0x4f1b31
xor eax, eax
mov esi, eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
cmp dword [ebx + 0x14], eax
jle 0x4f1ccd
mov ecx, eax
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebx + 0x1c]
push dword [eax + ecx*4 + 4]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004fc3e9
cmp byte [eax + 4], 0
jne 0x4f1ba5
push esi
push ebx
mov ecx, edi
call fcn.004f1484
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [edi + 4]
mov dword [ebp - 0xb4], esi
mov eax, dword [esi + eax*4 + 4]
push eax
mov dword [ebp - 0xb0], eax
call fcn.004eaafb
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4f1c0e
mov eax, dword [edi]
mov dword [ebp - 0xb4], esi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4f1c08
push dword [ebp - 0xb0]
call fcn.004eb731
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xb4], ecx
jmp 0x4f1c0e
mov eax, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x8c]
cmp eax, esi
je 0x4f2211
mov ecx, dword [edi]
test eax, eax
jne 0x4f1d74
cmp byte [ecx + 0x15], al
jne 0x4f1c6e
cmp byte [ecx + 0x16], al
jne 0x4f1d58
cmp byte [ecx + 0x17], al
jne 0x4f1c60
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004db33d
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc4]
jne 0x4f1d56
push dword [ebp - 0x90]
mov ecx, edi
push ebx
call fcn.004f14fb
mov ecx, dword [ebp - 0xa4]
mov eax, dword [esi + 0x34]
mov esi, dword [ebp - 0xa0]
mov dword [eax + esi*4], ecx
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
je 0x4f1ca7
test ecx, ecx
jne 0x4f1ca7
mov eax, dword [ebx + 0x1c]
mov ecx, dword [edi + 4]
push dword [eax + esi*4 + 4]
call fcn.004eb0df
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x38]
mov dword [ecx + esi*4], eax
mov esi, dword [ebp - 0x90]
inc esi
mov ecx, esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x94], esi
cmp ecx, dword [ebx + 0x14]
jl 0x4f1b7d
xor eax, eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x60]
shl eax, 2
push eax
call fcn.004eb244
mov ecx, dword [ebp - 0x8c]
xor esi, esi
mov edx, esi
mov dword [ebp - 0x94], esi
mov dword [ecx + 0x3c], eax
cmp dword [ebx + 0x60], esi
jle 0x4f1df0
mov eax, dword [ebx + 0x68]
mov edx, dword [eax + edx*4]
test edx, edx
js 0x4f1dc2
cmp edx, dword [ebx + 0x14]
jge 0x4f1dc2
mov ebx, dword [ebp - 0xa0]
mov eax, dword [ecx + 0x3c]
inc dword [ebp - 0xa0]
mov dword [eax + ebx*4], edx
mov eax, dword [edi]
mov ebx, dword [ebp - 0xac]
cmp byte [eax + 0x15], 0
jne 0x4f1dda
push edx
call fcn.004fa66a
mov dword [ebp - 0xb0], eax
lea ecx, [edi + 0x44]
lea eax, [ebp - 0xb0]
push eax
call fcn.004fae4e
jmp 0x4f1dd4
mov ecx, dword [edi]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xb4]
push dword [edx + eax*4 + 4]
call fcn.004f0c70
mov ecx, eax
jmp 0x4f1c74
cmp byte [ecx + 0x14], 0
je 0x4f1c6e
push dword [ebx + 0x78]
lea esi, [ecx + 0x1c]
mov ecx, esi
call fcn.004fd434
mov ecx, dword [ebp - 0xa4]
cmp eax, dword [esi]
je 0x4f1db7
cmp dword [ecx + 0x14], 0
jne 0x4f1db7
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea ecx, [edi + 0x44]
call fcn.004fc645
mov ecx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x8c]
jmp 0x4f1c74
push str.Invalid_public_dependency_index.
push 0xa
push ebx
push dword [ebx + 0x78]
mov ecx, edi
call fcn.004eff87
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x94]
inc edx
mov dword [ebp - 0x94], edx
cmp edx, dword [ebx + 0x60]
jl 0x4f1cfe
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 0x14], eax
lea ecx, [edi + 0x3c]
call fcn.004fae30
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
jne 0x4f1e46
mov eax, dword [ebp - 0x8c]
mov ecx, esi
mov dword [ebp - 0x94], ecx
cmp dword [eax + 0x10], esi
jle 0x4f1e46
mov ebx, eax
push ecx
mov ecx, ebx
call fcn.004fa66a
push eax
mov ecx, edi
call fcn.004f037e
mov ecx, dword [ebp - 0x94]
inc ecx
mov dword [ebp - 0x94], ecx
cmp ecx, dword [ebx + 0x10]
jl 0x4f1e1e
mov ebx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x6c]
mov ecx, dword [edi + 4]
shl eax, 2
push eax
mov dword [ebp - 0xa0], esi
call fcn.004eb244
mov ecx, dword [ebp - 0x8c]
mov edx, esi
mov dword [ebp - 0x94], esi
mov dword [ecx + 0x40], eax
cmp dword [ebx + 0x6c], esi
jle 0x4f1ec4
mov eax, dword [ebx + 0x74]
mov esi, dword [eax + edx*4]
test esi, esi
js 0x4f1e9a
cmp esi, dword [ebx + 0x14]
jge 0x4f1e9a
mov ebx, dword [ebp - 0xa0]
mov eax, dword [ecx + 0x40]
inc dword [ebp - 0xa0]
mov dword [eax + ebx*4], esi
mov ebx, dword [ebp - 0xac]
jmp 0x4f1eb8
push str.Invalid_weak_dependency_index.
push 0xa
push ebx
push dword [ebx + 0x78]
mov ecx, edi
call fcn.004eff87
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x94]
inc edx
mov dword [ebp - 0x94], edx
cmp edx, dword [ebx + 0x6c]
jl 0x4f1e71
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xa0]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x1c], eax
imul eax, dword [ebx + 0x24], 0x58
mov ecx, dword [edi + 4]
push eax
call fcn.004eb244
xor edx, edx
mov dword [esi + 0x44], eax
mov dword [ebp - 0x90], edx
cmp dword [ebx + 0x24], edx
jle 0x4f1f3b
mov eax, edx
mov dword [ebp - 0x9c], eax
mov ecx, dword [esi + 0x44]
add ecx, eax
mov eax, dword [ebx + 0x2c]
push ecx
mov ecx, dword [ebp - 0x90]
push edx
push dword [eax + ecx*4 + 4]
mov ecx, edi
call fcn.004f22c3
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x9c], 0x58
inc eax
cmp eax, dword [ebx + 0x24]
push 0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x9c]
pop edx
jl 0x4f1efe
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x20], eax
imul eax, dword [ebx + 0x34], 0x30
mov ecx, dword [edi + 4]
push eax
call fcn.004eb244
xor edx, edx
mov dword [esi + 0x48], eax
mov dword [ebp - 0x90], edx
cmp dword [ebx + 0x34], edx
jle 0x4f1fa3
mov eax, edx
mov dword [ebp - 0x9c], eax
mov ecx, dword [esi + 0x48]
add ecx, eax
mov eax, dword [ebx + 0x3c]
push ecx
mov ecx, dword [ebp - 0x90]
push edx
push dword [eax + ecx*4 + 4]
mov ecx, edi
call fcn.004f42bf
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x9c], 0x30
inc eax
cmp eax, dword [ebx + 0x34]
push 0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x9c]
pop edx
jl 0x4f1f66
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x24], eax
imul eax, dword [ebx + 0x44], 0x18
mov ecx, dword [edi + 4]
push eax
call fcn.004eb244
mov dword [esi + 0x4c], eax
xor eax, eax
mov edx, eax
mov dword [ebp - 0x94], edx
cmp dword [ebx + 0x44], eax
jle 0x4f2004
mov dword [ebp - 0x90], eax
mov ecx, dword [esi + 0x4c]
add ecx, eax
mov eax, dword [ebx + 0x4c]
push ecx
push ecx
mov ecx, edi
push dword [eax + edx*4 + 4]
call fcn.004f4fa9
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
inc edx
add eax, 0x18
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], eax
cmp edx, dword [ebx + 0x44]
jl 0x4f1fce
mov eax, dword [ebx + 0x54]
mov dword [esi + 0x28], eax
imul eax, dword [ebx + 0x54], 0x58
mov ecx, dword [edi + 4]
push eax
call fcn.004eb244
xor edx, edx
mov dword [esi + 0x50], eax
mov dword [ebp - 0x90], edx
cmp dword [ebx + 0x54], edx
jle 0x4f206e
mov eax, edx
mov dword [ebp - 0x9c], eax
mov ecx, dword [esi + 0x50]
add ecx, eax
mov eax, dword [ebx + 0x5c]
push 1
push ecx
mov ecx, dword [ebp - 0x90]
push edx
push dword [eax + ecx*4 + 4]
mov ecx, edi
call fcn.004f32bb
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x9c], 0x58
inc eax
cmp eax, dword [ebx + 0x54]
push 0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x9c]
pop edx
jl 0x4f202f
mov eax, dword [ebx + 8]
shr eax, 3
test al, 1
jne 0x4f207d
mov dword [esi + 0x54], edx
jmp 0x4f2096
mov eax, dword [ebx + 0x84]
mov ecx, 0x58fbf0
test eax, eax
push esi
cmovne ecx, eax
push ecx
mov ecx, edi
call fcn.004f130f
push ebx
push esi
mov ecx, edi
call fcn.004f5161
cmp byte [edi + 0x18], 0
jne 0x4f2160
push edi
lea ecx, [ebp - 0x88]
call fcn.004f78a5
mov byte [ebp - 4], 0x20
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x90], eax
cmp esi, eax
je 0x4f20f1
push esi
lea ecx, [ebp - 0x88]
call fcn.004f79dc
mov ebx, dword [edi + 0x10]
add esi, 0x44
mov dword [ebp - 0x90], ebx
cmp esi, ebx
jne 0x4f20c9
mov ebx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x90]
mov esi, dword [edi + 0xc]
cmp esi, eax
je 0x4f2118
mov ebx, dword [ebp - 0x90]
mov ecx, esi
call fcn.004fd655
add esi, 0x44
cmp esi, ebx
jne 0x4f20fe
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0xac]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x4f212e
push eax
lea ecx, [ebp - 0x88]
call fcn.004f88b1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.004f79c0
cmp byte [edi + 0x18], 0
mov esi, dword [ebp - 0x8c]
jne 0x4f2160
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
jne 0x4f215a
push ebx
push esi
mov ecx, edi
call fcn.004f642e
cmp byte [edi + 0x18], 0
je 0x4f21b4
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x94], ecx
cmp dword [ebx + 0x24], esi
jle 0x4f21b6
mov edx, esi
mov dword [ebp - 0xa8], esi
mov eax, dword [ebx + 0x2c]
push dword [eax + ecx*4 + 4]
mov eax, dword [ebp - 0x8c]
mov ecx, edi
mov eax, dword [eax + 0x44]
add eax, edx
push eax
call fcn.004f74b9
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0xa8]
inc ecx
add edx, 0x58
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa8], edx
cmp ecx, dword [ebx + 0x24]
jl 0x4f2177
jmp 0x4f21b6
xor esi, esi
cmp dword [edi + 0x48], esi
je 0x4f21cc
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
jne 0x4f21cc
push ecx
push ebx
mov ecx, edi
call fcn.004fa13a
cmp byte [edi + 0x18], 0
jne 0x4f21d8
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0xc4]
call fcn.00416b68
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xbc]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.004fd462
push dword [ebp - 0xbc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
call fcn.0051c56a
ret 4
xor esi, esi
jmp 0x4f21d8