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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009ebd0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x21c]
mov dword [esp + 0x1c], ecx
call sym.ACE.dll_public:_int___thiscall_ACE_RW_Process_Mutex::acquire_read_void_
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp eax, 0xffffffff
jne 0x1004e90c
or eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x10]
cmp eax, ecx
je 0x1004e92a
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x24]
call fcn.100509b0
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], 1
mov edi, edi
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x1004eada
mov eax, dword [esp + 0x28]
cmp eax, dword [edx + 0x14]
jge 0x1004eada
test eax, eax
js 0x1004eada
mov edi, dword [esp + 0x2c]
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*4]
cmp edi, ecx
je 0x1004eada
mov eax, dword [esi + 4]
lea edx, [eax + eax + 2]
mov ecx, esi
mov dword [esp + 0x30], edx
call sym.ACE.dll_public:_wchar_t____thiscall_ACE_String_Base_wchar_t_::rep_void_const
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0xc]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], 1
call sym.ACE.dll_public:_class_ACE_NS_String___thiscall_ACE_NS_Internal::value_void_
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call sym.ACE.dll_public:_int___thiscall_ACE_NS_String::strstr_class_ACE_NS_String_const__const
cmp eax, 0xffffffff
setne byte [esp + 0x13]
cmp byte [esp + 0x44], 0
je 0x1004e9c9
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
call ebx
add esp, 4
cmp byte [esp + 0x13], 0
je 0x1004ea9e
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0xc]
call sym.ACE.dll_public:_class_ACE_NS_String___thiscall_ACE_NS_Internal::value_void_
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
mov byte [esp + 0x8c], 1
call sym.ACE.dll_public:_class_ACE_NS_WString___thiscall_ACE_NS_String::operator_class_ACE_NS_WString_void_
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x8c], 2
call sym.ACE.dll_public:_void___thiscall_ACE_String_Base_wchar_t_::constructor_class_ACE_String_Base_wchar_t__const__
mov byte [esp + 0x88], 4
cmp dword [esp + 0x70], 0
je 0x1004ea3d
cmp byte [esp + 0x78], 0
je 0x1004ea3d
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [esp + 0x74]
mov eax, dword [eax + 0x10]
push edx
call eax
mov byte [esp + 0x88], 5
cmp byte [esp + 0x50], 0
je 0x1004ea56
mov ecx, dword [esp + 0x4c]
push ecx
call ebx
add esp, 4
mov ebx, dword [ebp + 8]
lea edi, [esp + 0x54]
call fcn.10050b40
test eax, eax
je 0x1004ea75
mov edx, edi
push edx
mov edi, ebx
call fcn.10050a40
cmp eax, 0xffffffff
je 0x1004eaac
xor eax, eax
mov byte [esp + 0x88], al
mov dword [esp + 0x14], eax
cmp dword [esp + 0x5c], eax
je 0x1004ea9e
cmp byte [esp + 0x64], al
je 0x1004ea9e
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
mov edx, dword [esp + 0x60]
mov eax, dword [eax + 0x10]
push edx
call eax
lea ecx, [esp + 0x24]
call fcn.100509b0
jmp 0x1004e940
mov byte [esp + 0x88], 0
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x14], 0xffffffff
je 0x1004eada
cmp byte [esp + 0x64], 0
je 0x1004eada
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 0x10]
push eax
call edx
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
add edi, 0x64
push eax
lea ebx, [esp + 0x20]
xor eax, eax
mov ecx, edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0
call fcn.100305b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x18]
add esp, 4
push edi
push 0
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x1004eb2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8