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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x13a12b6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x14016ec]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x14016ec]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], 0
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
cmp eax, esi
jae 0x12d4025
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d4025
movzx ecx, cl
inc eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x14], ecx
mov eax, ecx
jmp 0x12d4079
mov edx, esi
sub edx, eax
cmp edx, 0xa
jge 0x12d405e
cmp eax, esi
jae 0x12d403a
test byte [esi - 1], 0x80
je 0x12d405e
cmp eax, esi
jne 0x12d4055
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x12d4055
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, dword [ebx + 0x24]
jge 0x12d4055
mov byte [ebx + 0x18], 1
xor eax, eax
jmp 0x12d4076
mov eax, ebx
call fcn.012cb180
jmp 0x12d4076
lea edx, [esp + 0x3c]
push edx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d4076
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x12d4970
mov ecx, eax
shr ecx, 3
dec ecx
cmp ecx, 8
ja case.default.0x12d4090
jmp dword [ecx*4 + 0x12d4994]
mov edx, eax
and dl, 7
cmp dl, 2
jne case.default.0x12d4090
mov esi, dword [esp + 0x20]
call fcn.012d1280
lea edi, [esp + 0x40]
mov esi, ebx
mov dword [esp + 0x1c], eax
call fcn.011fa530
test al, al
je 0x12d496c
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
call fcn.012bdd80
test al, al
je 0x12d496c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x12
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d4103
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov esi, dword [esp + 0x20]
or dword [esi + 0xbc], 2
cmp dword [esi + 0xc], 0x1405620
jne 0x12d4148
push 0x1c
call fcn.01328a50
add esp, 4
test eax, eax
je 0x12d4138
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x12d413a
xor eax, eax
mov dword [esp + 0x80], 0xffffffff
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
lea edi, [esp + 0x38]
mov esi, ebx
mov dword [esp + 0x1c], eax
call fcn.011fa530
test al, al
je 0x12d496c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
call fcn.012bdd80
test al, al
je 0x12d496c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x1a
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d41a4
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov esi, dword [esp + 0x20]
add esi, 0x10
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, 1
lea ebx, [ebx]
cmp eax, ecx
jge 0x12d41d1
mov edx, dword [esi]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [esi + 4], eax
mov edi, ecx
jmp 0x12d421f
mov eax, dword [esi + 0xc]
cmp ecx, eax
jne 0x12d41e1
inc eax
push eax
mov eax, esi
call fcn.012a1990
add dword [esi + 8], edi
push 0x1c
call fcn.01328a50
add esp, 4
test eax, eax
je 0x12d4205
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x12d4207
xor eax, eax
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [edx + ecx*4], eax
add dword [esi + 4], edi
mov edi, eax
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
cmp eax, esi
jae 0x12d423d
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d423d
movzx ecx, cl
inc eax
mov dword [esp + 0x34], ecx
mov dword [ebx + 4], eax
jmp 0x12d4268
mov edx, esi
sub edx, eax
cmp edx, 0xa
jge 0x12d429f
cmp esi, eax
jbe 0x12d4250
test byte [esi - 1], 0x80
je 0x12d429f
lea eax, [esp + 0x5c]
push eax
mov eax, ebx
call fcn.012cb550
test al, al
jne 0x12d4293
test al, al
je 0x12d496c
mov esi, dword [esp + 0x34]
call fcn.012bdd80
test al, al
je 0x12d496c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d42b9
cmp byte [eax], 0x1a
jne 0x12d42b9
mov esi, dword [esp + 0x1c]
inc eax
mov dword [ebx + 4], eax
jmp 0x12d41af
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov al, 1
jmp 0x12d4260
lea edx, [esp + 0x34]
push edx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d496c
mov dword [ebx + 4], eax
jmp 0x12d4268
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x22
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d42e2
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov esi, 1
cmp eax, ecx
jge 0x12d4305
mov edx, dword [edi + 0x30]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [edi + 0x34], eax
mov dword [esp + 0x1c], ecx
jmp 0x12d4343
mov eax, dword [edi + 0x3c]
cmp ecx, eax
jne 0x12d4316
inc eax
push eax
lea eax, [edi + 0x30]
call fcn.012a1990
add dword [edi + 0x38], esi
push 0xb8
call fcn.01328a50
add esp, 4
test eax, eax
je 0x12d4331
call fcn.012d6120
jmp 0x12d4333
xor eax, eax
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov dword [edx + ecx*4], eax
add dword [edi + 0x34], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
cmp eax, esi
jae 0x12d4361
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d4361
movzx ecx, cl
inc eax
mov dword [esp + 0x30], ecx
mov dword [ebx + 4], eax
jmp 0x12d4394
mov edx, esi
sub edx, eax
cmp edx, 0xa
jge 0x12d43ff
cmp esi, eax
jbe 0x12d437c
test byte [esi - 1], 0x80
je 0x12d43ff
lea eax, [esp + 0x44]
push eax
mov eax, ebx
call fcn.012cb550
test al, al
jne 0x12d43f3
test al, al
je 0x12d496c
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x30]
jg 0x12d496c
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.012cab20
mov ecx, dword [esp + 0x1c]
push ebx
mov esi, eax
call fcn.012d6450
test al, al
je 0x12d496c
cmp byte [ebx + 0x18], 0
je 0x12d496c
mov ecx, dword [ebx + 0x20]
add dword [ebx + 8], ecx
lea eax, [ebx + 0x1c]
mov dword [eax], esi
cmp dword [ebx + 0x24], esi
jge 0x12d43e0
lea eax, [ebx + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jge 0x12d441c
sub eax, ecx
sub dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
jmp 0x12d4423
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov al, 1
jmp 0x12d438c
lea edx, [esp + 0x30]
push edx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d496c
mov dword [ebx + 4], eax
jmp 0x12d4394
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x18], 0
test eax, eax
jle 0x12d4432
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4448
cmp byte [eax], 0x22
jne 0x12d4448
inc eax
mov dword [ebx + 4], eax
jmp 0x12d42e6
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x2a
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d4471
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov edx, dword [esp + 0x20]
add edx, 0x50
mov dword [esp + 0x1c], edx
lea esp, [esp]
mov esi, dword [esp + 0x1c]
call fcn.012b5c60
mov esi, dword [ebx + 8]
mov edi, eax
mov eax, dword [ebx + 4]
cmp eax, esi
jae 0x12d44a9
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d44a9
movzx ecx, cl
inc eax
mov dword [esp + 0x24], ecx
mov dword [ebx + 4], eax
jmp 0x12d44dc
mov edx, esi
sub edx, eax
cmp edx, 0xa
jge 0x12d4545
cmp esi, eax
jbe 0x12d44c4
test byte [esi - 1], 0x80
je 0x12d4545
lea eax, [esp + 0x4c]
push eax
mov eax, ebx
call fcn.012cb550
test al, al
jne 0x12d4539
test al, al
je 0x12d496c
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x30]
jg 0x12d496c
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebx
call fcn.012cab20
push ebx
mov ecx, edi
mov esi, eax
call fcn.012d8fe0
test al, al
je 0x12d496c
cmp byte [ebx + 0x18], 0
je 0x12d496c
mov ecx, dword [ebx + 0x20]
add dword [ebx + 8], ecx
lea eax, [ebx + 0x1c]
mov dword [eax], esi
cmp dword [ebx + 0x24], esi
jge 0x12d4526
lea eax, [ebx + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jge 0x12d4562
sub eax, ecx
sub dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
jmp 0x12d4569
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov al, 1
jmp 0x12d44d4
lea edx, [esp + 0x24]
push edx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d496c
mov dword [ebx + 4], eax
jmp 0x12d44dc
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x18], 0
test eax, eax
jle 0x12d4578
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d458e
cmp byte [eax], 0x2a
jne 0x12d458e
inc eax
mov dword [ebx + 4], eax
jmp 0x12d4480
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x32
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d45b7
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov edx, dword [esp + 0x20]
add edx, 0x70
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x1c]
call fcn.012b5ce0
mov esi, dword [ebx + 8]
mov edi, eax
mov eax, dword [ebx + 4]
cmp eax, esi
jae 0x12d45eb
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d45eb
movzx ecx, cl
inc eax
mov dword [esp + 0x2c], ecx
mov dword [ebx + 4], eax
jmp 0x12d461e
mov edx, esi
sub edx, eax
cmp edx, 0xa
jge 0x12d4687
cmp esi, eax
jbe 0x12d4606
test byte [esi - 1], 0x80
je 0x12d4687
lea eax, [esp + 0x54]
push eax
mov eax, ebx
call fcn.012cb550
test al, al
jne 0x12d467b
test al, al
je 0x12d496c
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x30]
jg 0x12d496c
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.012cab20
push ebx
mov ecx, edi
mov esi, eax
call fcn.012da810
test al, al
je 0x12d496c
cmp byte [ebx + 0x18], 0
je 0x12d496c
mov ecx, dword [ebx + 0x20]
add dword [ebx + 8], ecx
lea eax, [ebx + 0x1c]
mov dword [eax], esi
cmp dword [ebx + 0x24], esi
jge 0x12d4668
lea eax, [ebx + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jge 0x12d46a4
sub eax, ecx
sub dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
jmp 0x12d46ab
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov al, 1
jmp 0x12d4616
lea edx, [esp + 0x2c]
push edx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d496c
mov dword [ebx + 4], eax
jmp 0x12d461e
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x18], 0
test eax, eax
jle 0x12d46ba
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d46d0
cmp byte [eax], 0x32
jne 0x12d46d0
inc eax
mov dword [ebx + 4], eax
jmp 0x12d45c2
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x3a
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d46f9
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x98]
xor esi, esi
jmp 0x12d4710
cmp eax, ecx
jge 0x12d472a
mov edx, dword [edi + 0x90]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [edi + 0x94], eax
mov dword [esp + 0x1c], ecx
jmp 0x12d47a3
mov eax, dword [edi + 0x9c]
cmp ecx, eax
jne 0x12d4741
inc eax
push eax
lea eax, [edi + 0x90]
call fcn.012a1990
inc dword [edi + 0x98]
push 0x30
call fcn.01328a50
add esp, 4
mov edx, 1
cmp eax, esi
je 0x12d4788
mov ecx, 0x1405620
mov dword [eax], vtable.google::protobuf::FieldDescriptorProto.0
mov dword [eax + 4], esi
mov dword [eax + 0x28], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], esi
mov dword [eax + 0x2c], esi
jmp 0x12d478a
xor eax, eax
mov ecx, dword [edi + 0x94]
mov esi, dword [edi + 0x90]
mov dword [esi + ecx*4], eax
add dword [edi + 0x94], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
cmp eax, esi
jae 0x12d47c1
mov cl, byte [eax]
cmp cl, 0x80
jae 0x12d47c1
movzx edx, cl
inc eax
mov dword [esp + 0x28], edx
mov dword [ebx + 4], eax
jmp 0x12d47f4
mov ecx, esi
sub ecx, eax
cmp ecx, 0xa
jge 0x12d485f
cmp esi, eax
jbe 0x12d47dc
test byte [esi - 1], 0x80
je 0x12d485f
lea edx, [esp + 0x64]
push edx
mov eax, ebx
call fcn.012cb550
test al, al
jne 0x12d4853
test al, al
je 0x12d496c
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x30]
jg 0x12d496c
mov edx, dword [esp + 0x28]
push edx
mov ecx, ebx
call fcn.012cab20
mov ecx, dword [esp + 0x1c]
push ebx
mov esi, eax
call fcn.012d8100
test al, al
je 0x12d496c
cmp byte [ebx + 0x18], 0
je 0x12d496c
mov ecx, dword [ebx + 0x20]
add dword [ebx + 8], ecx
lea eax, [ebx + 0x1c]
mov dword [eax], esi
cmp dword [ebx + 0x24], esi
jge 0x12d4840
lea eax, [ebx + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jge 0x12d487c
sub eax, ecx
sub dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
jmp 0x12d4883
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov al, 1
jmp 0x12d47ec
lea ecx, [esp + 0x28]
push ecx
call fcn.012cb110
add esp, 4
test eax, eax
je 0x12d496c
mov dword [ebx + 4], eax
jmp 0x12d47f4
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x18], 0
test eax, eax
jle 0x12d4892
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d48a8
cmp byte [eax], 0x3a
jne 0x12d48a8
inc eax
mov dword [ebx + 4], eax
jmp 0x12d46fd
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x42
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d48cd
mov ecx, eax
and cl, 7
cmp cl, 2
jne case.default.0x12d4090
mov esi, dword [esp + 0x20]
call fcn.012a30b0
push eax
mov eax, ebx
call fcn.012e69e0
add esp, 4
test al, al
je 0x12d496c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jae 0x12d4006
cmp byte [eax], 0x4a
jne 0x12d4006
inc eax
mov dword [ebx + 4], eax
jmp 0x12d490e
mov edx, eax
and dl, 7
cmp dl, 2
jne case.default.0x12d4090
mov esi, dword [esp + 0x20]
call fcn.012d12f0
push eax
mov eax, ebx
call fcn.012e6a50
add esp, 4
test al, al
je 0x12d496c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jne 0x12d4006
cmp dword [ebx + 0x20], 0
je 0x12d4006
mov al, 1
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x18], al
jmp 0x12d4972
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x12d4970
mov ecx, dword [esp + 0x20]
add ecx, 4
push ebx
call fcn.012c5320
add esp, 4
test al, al
jne 0x12d4006
xor al, al
jmp 0x12d4972
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.01328a41
mov esp, ebp
pop ebp
ret 4