Function at 0x52ef70
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58015f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x640040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x587818
lea ecx, [edi + 4]
mov dword [edi], 0x5f94cc
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 1
xor eax, eax
lea ecx, [edi + 0x6c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x30], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x68], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x70]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
xor eax, eax
mov esi, dword [sym.imp.mfc140u.dll_AfxVariantInit]
mov word [edi + 0x98], ax
lea eax, [edi + 0xa0]
push eax
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
call esi
mov byte [ebp - 4], 4
lea ebx, [edi + 0xb0]
push ebx
call esi
mov byte [ebp - 4], 5
add edi, 0xc0
push edi
call esi
mov byte [ebp - 4], 6
xor eax, eax
mov esi, dword [ebp - 0x10]
push 0x30
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_ripinterface.cpp
push 0x587798
mov dword [esi + 0xd0], eax
mov word [esi + 0xd4], ax
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
lea ecx, [esi + 8]
push 0x587818
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
lea ecx, [esi + 0x6c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
lea ecx, [esi + 0x70]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov eax, 2
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov word [esi + 0xa0], ax
mov dword [esi + 0xa8], 0
mov word [ebx], ax
mov word [edi], ax
lea eax, [esi + 0x34]
mov dword [esi + 0xb8], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
call esi
mov edi, dword [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x50], eax
test eax, eax
jne 0x52f182
mov eax, dword [0x641a88]
push 0x49
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_ripinterface.cpp
add eax, 0x32c
push 0x587798
push eax
call fcn.004ec040
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x52f1ae
mov eax, dword [0x641a88]
push 0x4a
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_ripinterface.cpp
add eax, 0x32c
push 0x587798
push eax
call fcn.004ec040
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret