Function at 0x10032f10
Capabilities:
Access peb ldr_data
Get ntdll base address
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009deaf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x10032fbf
call sym.ACE.dll_public:_static_class_ACE_Recursive_Thread_Mutex____cdecl_ACE_Static_Object_Lock::instance_void_
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x10032fb8
mov dword [0x10115e5c], vtable.ACE_New_Allocator.0
mov dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], 0x10115e5c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
push 0x10115520
push 0x14
mov dword [ebp - 4], ebx
call fcn.1009ae46
mov edi, eax
add esp, 8
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x10033067
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x10033026
call sym.ACE.dll_public:_static_class_ACE_Recursive_Thread_Mutex____cdecl_ACE_Static_Object_Lock::instance_void_
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x1003301c
mov dword [0x10115e5c], vtable.ACE_New_Allocator.0
mov dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], 0x10115e5c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_]
mov dword [edi], edx
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
cmp edx, ebx
je 0x1003305a
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp + 8], ecx
jmp 0x10033050
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10033050
sub eax, dword [ebp + 8]
push 1
push eax
push edx
mov ecx, edi
call sym.ACE.dll_public:_void___thiscall_ACE_String_Base_char_::set_char_const___unsigned_int__bool_
jmp 0x10033069
xor edi, edi
mov byte [ebp - 4], bl
mov dword [esi + 0x14], edi
cmp edi, ebx
jne 0x10033095
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x10115520
push 0x14
call fcn.1009ae46
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x10033112
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x100330ee
call sym.ACE.dll_public:_static_class_ACE_Recursive_Thread_Mutex____cdecl_ACE_Static_Object_Lock::instance_void_
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], ebx
jne 0x100330e4
mov dword [0x10115e5c], vtable.ACE_New_Allocator.0
mov dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_], 0x10115e5c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [sym.ACE.dll_class_ACE_Allocator__ACE_Allocator::allocator_]
push 1
push ebx
push 0x100a4a6b
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call sym.ACE.dll_public:_void___thiscall_ACE_String_Base_char_::set_char_const___unsigned_int__bool_
jmp 0x10033114
xor edi, edi
mov dword [esi + 0x20], edi
cmp edi, ebx
je 0x10033073
push str.POSIXLY_CORRECT
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov edx, 1
test eax, eax
je 0x10033139
mov dword [esi + 0x2c], edx
mov ecx, dword [ebp + 0x10]
mov edi, 3
movsx eax, byte [ecx]
add ecx, edx
sub eax, 0x2b
je 0x10033163
sub eax, 2
je 0x1003315e
sub eax, 0xd
jne 0x1003307f
mov dword [esi + 0x1c], edx
jmp 0x10033141
mov dword [esi + 0x2c], edi
jmp 0x10033141
mov dword [esi + 0x2c], edx
jmp 0x10033141