Function at 0x10019540
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100e02c1
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10115034]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x10115034]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
call dword [sym.imp.NetCommHelper.dll_public:_static_class_CNetManager____cdecl_CNetManager::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.NetCommHelper.dll_public:_bool___thiscall_CNetManager::IsConnected_void_]
test al, al
je 0x100199e3
push str.Email_Message_start
push 1
push 0x16
push 0x100ecd1c
push 0x100ecd5c
call fcn.100d1270
push ecx
mov ecx, esp
push 0x100ecd84
call fcn.10001ef0
lea ecx, [esp + 0x2c]
call fcn.100b04a0
add esp, 0x18
mov dword [esp + 0x268], 0
mov esi, dword [eax]
lea ecx, [esi + 0x1c]
call fcn.100c6700
test al, al
je 0x100195eb
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x268], 0xffffffff
or ebx, 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10019624
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10019624
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x10019624
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x268], 1
mov eax, dword [0x101197ec]
test al, 1
jne 0x1001969d
or eax, 1
mov dword [0x101197ec], eax
mov byte [esp + 0x268], 2
movq qword [0x101197e0], xmm0
mov dword [0x101197e8], 0
call fcn.100b2e80
push 0x100e6320
call fcn.100dc9fb
add esp, 4
mov byte [esp + 0x268], 1
push ecx
lea eax, [esp + 0x24]
mov ecx, 0x101197e4
push eax
call fcn.100c72e0
mov ecx, dword [esp + 0x24]
mov eax, 0x88888889
sub ecx, dword [esp + 0x20]
sub esp, 0x18
imul ecx
add edx, ecx
mov ecx, esp
sar edx, 8
mov edi, edx
shr edi, 0x1f
push 0x100ecda4
add edi, edx
call fcn.10001ef0
lea ecx, [esp + 0x2c]
call fcn.100b04a0
add esp, 0x18
mov esi, dword [eax]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x100196f0
mov eax, dword [eax]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10019719
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10019719
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10019743
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10019743
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x10019743
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test edi, edi
jne 0x1001976d
push 0x100ecdc4
push 1
push 0x1e
push 0x100ecdd8
push 0x100ece18
call fcn.100d1270
add esp, 0x14
jmp 0x100199b8
xor esi, esi
lea ecx, [esp + 0x44]
push 0x100ece40
mov dword [esp + 0x14], esi
call fcn.100068a0
sub esp, 0x18
mov byte [esp + 0x280], 3
mov ecx, esp
mov dword [esp + 0x34], esp
lea eax, [esp + 0x5c]
push 0xffffffffffffffff
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.10006b20
lea eax, [esp + 0x44]
mov byte [esp + 0x280], 4
push eax
push ecx
call fcn.10014070
add esp, 4
mov byte [esp + 0x284], 3
mov ecx, eax
call fcn.100b20c0
mov byte [esp + 0x268], 5
test edi, edi
je 0x1001992c
mov esi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x78]
call fcn.10019a10
sub esp, 0x18
mov byte [esp + 0x280], 6
mov ecx, esp
mov dword [esp + 0x34], esp
lea eax, [esp + 0x44]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006b20
sub esp, 0x18
mov byte [esp + 0x298], 7
mov ecx, esp
lea eax, [esp + 0x134]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006b20
mov byte [esp + 0x298], 6
call fcn.100ace90
add esp, 0x30
test al, al
je 0x1001990a
lea eax, [esp + 0x74]
push eax
call fcn.1001a100
test al, al
je 0x1001990a
inc dword [esp + 0x10]
sub esp, 0x18
mov ecx, esp
call fcn.100aca50
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x90]
call fcn.10018af0
sub esp, 0x18
mov byte [esp + 0x280], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0x74]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006b20
mov byte [esp + 0x280], 9
call dword [sym.imp.NetCommHelper.dll_public:_static_class_CNetManager____cdecl_CNetManager::GetInstance_void_]
mov ecx, eax
mov byte [esp + 0x280], 8
call dword [sym.imp.NetCommHelper.dll_public:_void___thiscall_CNetManager::AddData_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___]
cmp dword [esp + 0x70], 0x10
jb 0x100198f5
push dword [esp + 0x5c]
call ebx
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x268], 5
call fcn.10019d90
add esi, 0x1e0
dec edi
jne 0x100197e5
mov esi, dword [esp + 0x10]
call dword [sym.imp.NetCommHelper.dll_public:_static_class_CNetManager____cdecl_CNetManager::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.NetCommHelper.dll_public:_void___thiscall_CNetManager::HandleData_void_]
push esi
push str.Email_Message_size:__d
push 1
push 0x35
push 0x100ece64
push 0x100ecea4
call fcn.100d1270
push str.Email_Message_end
push 1
push 0x36
push str..._srcMoniterHelperEventExecuteHandleEmailMessageEvent.cpp
push str.CHandleEmailMessageEvent::HandleData
call fcn.100d1270
add esp, 0x2c
cmp dword [esp + 0x40], 0x10
jb 0x1001997e
push dword [esp + 0x2c]
call ebx
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x100199a3
push dword [esp + 0x44]
call ebx
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100199e1
mov esi, edi
cmp edi, dword [esp + 0x24]
je 0x100199db
mov ecx, esi
call fcn.10019d90
add esi, 0x1e0
cmp esi, dword [esp + 0x24]
jne 0x100199c8
push edi
call ebx
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret