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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x181cd008]
xor eax, esp
mov dword [esp + 0x68], eax
and dword [esp + 4], 0
mov eax, dword [0x181d6e80]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], ebx
push esi
push edi
test al, 1
jne 0x180d25d2
or eax, 1
mov edi, 0x181d6e8c
push 7
mov dword [0x181d6e80], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push 0x18173371
call fcn.1814542f
pop ecx
mov esi, 0x181d6e8c
mov ecx, esi
call fcn.180cb6fb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx], 0
jne 0x180d25f4
mov ecx, ebx
mov byte [ebx], 1
call fcn.180d282f
mov ecx, esi
call fcn.180cb6fb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
je 0x180d2627
mov edi, dword [ebx + 0x18]
xor esi, esi
test edi, edi
jle 0x180d2627
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x180d2622
mov dl, 1
call fcn.180d2993
inc esi
cmp esi, edi
jl 0x180d2611
call fcn.180ec505
mov ecx, dword [ebx + 0xc]
mov esi, eax
and dword [esp + 0x48], 0
push 0xf
pop edi
mov dword [esp + 0x4c], edi
lea edx, [ecx + 1]
mov byte [esp + 0x38], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180d2645
sub ecx, edx
push ecx
push dword [ebx + 0xc]
lea ecx, [esp + 0x40]
call fcn.18020c73
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.180ec576
mov esi, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.1800e3dd
test esi, esi
jne 0x180d26c1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x5c]
and dword [esp + 0x6c], esi
push 0x1f
push str.CHECK_failed:_file___nullptr:
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], str.T:_srcpiper_branchesomaha_M36_release_branchgoogle3_third_partyprotobuf_legacy_opensource_srcgoogleprotobufgenerated_message_reflection.cc
mov dword [esp + 0x60], 0xd91
mov dword [esp + 0x78], edi
mov byte [esp + 0x64], 0
call fcn.1804cf3d
lea eax, [esp + 0x50]
push eax
call fcn.180caac4
test byte [esp + 0x10], 1
je 0x180d26d1
lea ecx, [esp + 0x5c]
call fcn.1800e3dd
call fcn.180dce1b
mov esi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x30]
mov edi, dword [ebx + 0x28]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
and dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edi
cmp dword [esi + 0x24], 0
jle 0x180d273a
mov ebx, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x20]
add eax, edi
push eax
call fcn.180d244d
inc ebx
add edi, 0x58
cmp ebx, dword [esi + 0x24]
jl 0x180d271a
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp dword [esi + 0x28], edi
jle 0x180d275e
xor edx, edx
mov eax, dword [esi + 0x40]
add eax, edx
add edx, 0x2c
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
add ecx, 4
inc edi
mov dword [esp + 0x28], ecx
cmp edi, dword [esi + 0x28]
jl 0x180d2743
mov eax, dword [esi + 0x4c]
mov al, byte [eax + 0x57]
test al, al
je 0x180d2785
xor edx, edx
cmp dword [esi + 0x2c], edx
jle 0x180d2785
xor edi, edi
mov ecx, dword [esi + 0x44]
mov eax, dword [ebx + 0x34]
add ecx, edi
add edi, 0x18
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [esi + 0x2c]
jl 0x180d2771
mov eax, dword [0x181d6e88]
test al, 1
jne 0x180d27cb
or eax, 1
push 0x28
mov dword [0x181d6e88], eax
call fcn.18145795
mov esi, eax
xor edx, edx
pop ecx
push 6
pop ecx
mov dword [esi], edx
lea edi, [esi + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], edx
mov ecx, 0x180d31f4
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov edx, esi
call fcn.180cc938
mov dword [0x181d6e84], esi
jmp 0x180d27d1
mov esi, dword [0x181d6e84]
mov edi, dword [ebx + 0x2c]
mov ecx, esi
mov ebx, dword [esp + 0x24]
call fcn.180cb6fb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], ebx
cmp dword [ecx + 8], eax
je 0x180d2804
mov dword [eax], edi
mov dword [eax + 4], ebx
add dword [ecx + 4], 8
jmp 0x180d280f
lea edx, [esp + 0x14]
push edx
push eax
call fcn.180cca75
mov ecx, esi
call fcn.180cb6fb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181450cb
mov esp, ebp
pop ebp
ret