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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x551008]
xor eax, esp
mov dword [esp + 0x68], eax
and dword [esp + 4], 0
mov eax, dword [0x559b98]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], ebx
push esi
push edi
test al, 1
jne 0x4901e6
or eax, 1
mov edi, 0x559ba4
push 7
mov dword [0x559b98], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push 0x505ca9
call fcn.004e32ca
pop ecx
mov esi, 0x559ba4
mov ecx, esi
call fcn.00489312
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx], 0
jne 0x490208
mov ecx, ebx
mov byte [ebx], 1
call fcn.00490443
mov ecx, esi
call fcn.00489312
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
je 0x49023b
mov edi, dword [ebx + 0x18]
xor esi, esi
test edi, edi
jle 0x49023b
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x490236
mov dl, 1
call fcn.004905a7
inc esi
cmp esi, edi
jl 0x490225
call fcn.004aa119
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 0x490259
sub ecx, edx
push ecx
push dword [ebx + 0xc]
lea ecx, [esp + 0x40]
call fcn.0041bdec
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004aa18a
mov esi, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.00409c0e
test esi, esi
jne 0x4902d5
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.0041be35
lea eax, [esp + 0x50]
push eax
call fcn.004886e5
test byte [esp + 0x10], 1
je 0x4902e5
lea ecx, [esp + 0x5c]
call fcn.00409c0e
call fcn.0049aa79
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 0x49034e
mov ebx, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x20]
add eax, edi
push eax
call fcn.00490061
inc ebx
add edi, 0x58
cmp ebx, dword [esi + 0x24]
jl 0x49032e
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp dword [esi + 0x28], edi
jle 0x490372
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 0x490357
mov eax, dword [esi + 0x4c]
mov al, byte [eax + 0x57]
test al, al
je 0x490399
xor edx, edx
cmp dword [esi + 0x2c], edx
jle 0x490399
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 0x490385
mov eax, dword [0x559ba0]
test al, 1
jne 0x4903df
or eax, 1
push 0x28
mov dword [0x559ba0], eax
call fcn.004e32f2
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, 0x490e2e
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov edx, esi
call fcn.0048a54f
mov dword [0x559b9c], esi
jmp 0x4903e5
mov esi, dword [0x559b9c]
mov edi, dword [ebx + 0x2c]
mov ecx, esi
mov ebx, dword [esp + 0x24]
call fcn.00489312
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 0x490418
mov dword [eax], edi
mov dword [eax + 4], ebx
add dword [ecx + 4], 8
jmp 0x490423
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0048a68c
mov ecx, esi
call fcn.00489312
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.004e302f
mov esp, ebp
pop ebp
ret