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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58020b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [ebp - 0x2c], edi
push eax
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 eax, [edi + 8]
mov ecx, eax
mov dword [ebp - 0x28], eax
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 - 0x20]
push 0x587818
lea ecx, [esi + 8]
mov dword [esi + 0xd0], eax
mov word [esi + 0xd4], ax
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 dword [esi + 0xb8], 0
mov word [edi], ax
mov dword [esi + 0xc8], 0
mov dword [esi + 0x4c], 0
push 0
lea ebx, [esi + 4]
mov dword [esi + 0x50], 0
push 0x5c7af4
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
mov esi, eax
mov ecx, ebx
test esi, esi
jns 0x52f5fb
push 0
push 0x58d8e4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
mov esi, eax
test esi, esi
js 0x52f5de
push esi
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov byte [ebp - 4], 8
mov ecx, 0x641e60
push 1
call fcn.004f68b0
test al, al
je 0x52f6e5
mov eax, dword [0x641a88]
mov edi, dword [eax + 0x104]
test edi, edi
je 0x52f5cf
lea eax, [edi]
mov edi, dword [edi]
mov dword [ebp - 0x24], edi
mov edi, dword [eax + 8]
cmp byte [edi + 0x78], 0
je 0x52f5c4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x52f5c4
mov edx, ecx
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x52f490
mov eax, dword [ebp - 0x28]
sub edx, esi
sar edx, 1
mov eax, dword [eax]
cmp edx, dword [eax - 0xc]
jne 0x52f5c4
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52f4d6
test dx, dx
je 0x52f4d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52f4d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x52f4b0
xor eax, eax
jmp 0x52f4db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x52f5c4
mov edi, dword [edi + 0x2c]
test edi, edi
je 0x52f5c4
nop
mov esi, dword [edi + 8]
mov edi, dword [edi]
test esi, esi
jne 0x52f51d
mov eax, dword [0x641a88]
push 0x8d
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_ripinterface.cpp
add eax, 0x32c
push 0x587798
push eax
call fcn.004ec040
add esp, 0x10
jmp 0x52f586
mov eax, dword [esi]
mov ecx, esi
push 2
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x52f586
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x52f586
mov edx, ecx
lea ebx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x52f540
mov eax, dword [ebp - 0x14]
sub edx, ebx
sar edx, 1
cmp edx, dword [eax - 0xc]
jne 0x52f586
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52f57d
test dx, dx
je 0x52f579
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52f57d
add eax, 4
add ecx, 4
test dx, dx
jne 0x52f557
xor eax, eax
jmp 0x52f582
sbb eax, eax
or eax, 1
test eax, eax
je 0x52f590
test edi, edi
jne 0x52f4f0
jmp 0x52f5c4
mov ebx, dword [ebp - 0x20]
mov ecx, esi
mov dword [ebx + 0x14], esi
mov eax, dword [esi]
call dword [eax + 0x78]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x80]
push eax
lea ecx, [ebx + 8]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
movzx eax, byte [esi + 0x258]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x254]
mov dword [ebx + 0x10], eax
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x52f466
mov ecx, 0x641e60
call fcn.004f6a70
jmp 0x52f6e5
mov eax, dword [0x641a88]
add eax, 0x32c
push str.Invalid_RIP_Device_Name_n
push eax
call fcn.004ec040
add esp, 8
jmp 0x52f6f2
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x28]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov dword [ecx + 0xc], eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x52f6e5
mov eax, dword [0x641a88]
mov esi, dword [eax + 0x104]
test esi, esi
je 0x52f6e5
mov eax, esi
mov esi, dword [esi]
mov ebx, dword [eax + 8]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x52f676
mov edx, ecx
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x52f690
mov eax, dword [ebp - 0x28]
sub edx, edi
sar edx, 1
mov eax, dword [eax]
cmp edx, dword [eax - 0xc]
jne 0x52f676
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52f6d6
test dx, dx
je 0x52f6d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52f6d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x52f6b0
xor eax, eax
jmp 0x52f6db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x52f676
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], ebx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x52f732
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x52f708
call fcn.004ba310
push 1
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
push 0x641aa8
movlpd qword [ebp - 0x1c], xmm0
call fcn.004f6560
mov byte [ebp - 4], 0xb
inc dword [esi + 0x54]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.004f6620
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x34]
push eax
call esi
lea eax, [ebx + 0x18]
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x52f77b
mov eax, dword [0x641a88]
push 0xc8
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 0x52f7ac
mov ecx, dword [0x641a88]
push 0xc9
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_ripinterface.cpp
add ecx, 0x32c
push 0x587798
push ecx
call fcn.004ec040
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 4