Function at 0x10076bf0
Capabilities:
Access peb ldr_data
Get process heap flags
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1453
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0xc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
call sym.ACE.dll_bool___cdecl_ACE::debug_void_
test al, al
je 0x10076c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
cmp eax, esi
je 0x10076c55
mov ebx, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.Service_Repository.cpp
mov dword [eax + 0x144], 0xdd
mov dword [eax + 0x148], esi
mov dword [eax + 0x14c], ebx
mov ecx, dword [edi]
push ecx
push edi
push str.ACE___P_t__SR::close___repo____size_d_n
push 4
push eax
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x14
mov ebx, dword [edi]
cmp ebx, esi
je 0x10076e4b
mov eax, dword [edi + 8]
mov esi, dword [edi]
dec ebx
lea ecx, [eax + esi*8]
mov dword [esp + 0x18], ebx
cmp eax, ecx
je 0x10076cbb
cmp ebx, dword [eax]
je 0x10076cbd
add eax, 8
cmp eax, ecx
jne 0x10076cb0
mov eax, ecx
cmp eax, ecx
jne 0x10076cd7
call fcn.10077b00
mov eax, dword [edi + 8]
lea eax, [eax + esi*8]
mov dword [eax], ebx
mov dword [eax + 4], 0
inc dword [edi]
test byte [0x10115fcc], 1
mov esi, dword [eax + 4]
jne 0x10076cff
or dword [0x10115fcc], 1
push str.ACE_DEBUG
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [0x10115fc8], eax
jmp 0x10076d04
mov eax, dword [0x10115fc8]
mov cl, byte [0x10115860]
test cl, cl
je 0x10076d13
movsx eax, cl
jmp 0x10076d25
test eax, eax
je 0x10076df9
xor ecx, ecx
cmp byte [eax], 0x30
setne cl
mov eax, ecx
test eax, eax
je 0x10076df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test esi, esi
jne 0x10076d9d
test eax, eax
jne 0x10076d51
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
jmp 0x10076d55
mov dword [esp + 0x14], eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
mov ecx, dword [esp + 0x14]
push ebx
push edi
push str.ACE___P_t__SR::close___repo_____d_____0_n
push 4
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.Service_Repository.cpp
mov dword [eax + 0x144], 0xef
mov dword [eax + 0x148], 0
mov dword [eax + 0x14c], ecx
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x14
jmp 0x10076df9
test eax, eax
jne 0x10076dab
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
jmp 0x10076daf
mov dword [esp + 0x14], eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
mov ecx, dword [esp + 0x14]
push esi
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.Service_Repository.cpp
mov dword [eax + 0x144], 0xf6
mov dword [eax + 0x148], 0
mov dword [eax + 0x14c], ecx
mov ecx, dword [esi]
push ecx
push ebx
push edi
push str.ACE___P_t__SR::close___repo_____d___name_s__object___n
push 4
push eax
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x1c
mov dword [esp + 0x14], esi
test esi, esi
je 0x10076e41
mov ecx, esi
mov byte [esp + 0x30], 1
call sym.ACE.dll_public:_int___thiscall_ACE_Service_Type::fini_void_
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esi + 8]
mov byte [esp + 0x30], 0
call sym.ACE.dll_public:_int___thiscall_ACE_DLL::close_void_
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ebx, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
jne 0x10076c9f
xor esi, esi
mov eax, dword [esp + 0x1c]
push eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret