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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f0161
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1012d034]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x1012d034]
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 0x10021453
push str.Email_Message_start
push 1
push 0x16
push 0x10100218
push 0x10100258
call fcn.100e13e0
push ecx
mov ecx, esp
push 0x10100280
call fcn.10001f10
lea ecx, [esp + 0x2c]
call fcn.100bcbd0
add esp, 0x18
mov dword [esp + 0x268], 0
mov esi, dword [eax]
lea ecx, [esi + 0x1c]
call fcn.100d5ff0
test al, al
je 0x1002105b
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 0x10021094
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10021094
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x10021094
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 [0x101320c8]
test al, 1
jne 0x1002110d
or eax, 1
mov dword [0x101320c8], eax
mov byte [esp + 0x268], 2
movq qword [0x101320bc], xmm0
mov dword [0x101320c4], 0
call fcn.100c00b0
push 0x100f6d90
call fcn.100ebe7b
add esp, 4
mov byte [esp + 0x268], 1
push ecx
lea eax, [esp + 0x24]
mov ecx, 0x101320c0
push eax
call fcn.100d78e0
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 0x101002a0
add edi, edx
call fcn.10001f10
lea ecx, [esp + 0x2c]
call fcn.100bcbd0
add esp, 0x18
mov esi, dword [eax]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x10021160
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 0x10021189
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10021189
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100211b3
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x100211b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x100211b3
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 0x100211dd
push 0x101002c0
push 1
push 0x1e
push 0x101002d4
push 0x10100314
call fcn.100e13e0
add esp, 0x14
jmp 0x10021428
xor esi, esi
lea ecx, [esp + 0x44]
push 0x1010033c
mov dword [esp + 0x14], esi
call fcn.10007b40
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.10007d40
lea eax, [esp + 0x44]
mov byte [esp + 0x280], 4
push eax
push ecx
call fcn.10016470
add esp, 4
mov byte [esp + 0x284], 3
mov ecx, eax
call fcn.100bf040
mov byte [esp + 0x268], 5
test edi, edi
je 0x1002139c
mov esi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x78]
call fcn.10021480
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.10007d40
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.10007d40
mov byte [esp + 0x298], 6
call fcn.100b8c20
add esp, 0x30
test al, al
je 0x1002137a
lea eax, [esp + 0x74]
push eax
call fcn.10021b70
test al, al
je 0x1002137a
inc dword [esp + 0x10]
sub esp, 0x18
mov ecx, esp
call fcn.100b87e0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x90]
call fcn.10020560
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.10007d40
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 0x10021365
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.10021800
add esi, 0x1e0
dec edi
jne 0x10021255
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 0x10100360
push 0x101003a0
call fcn.100e13e0
push str.Email_Message_end
push 1
push 0x36
push str..._srcMoniterHelperEventExecuteHandleEmailMessageEvent.cpp
push str.CHandleEmailMessageEvent::HandleData
call fcn.100e13e0
add esp, 0x2c
cmp dword [esp + 0x40], 0x10
jb 0x100213ee
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 0x10021413
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 0x10021451
mov esi, edi
cmp edi, dword [esp + 0x24]
je 0x1002144b
mov ecx, esi
call fcn.10021800
add esi, 0x1e0
cmp esi, dword [esp + 0x24]
jne 0x10021438
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.100ebd7b
mov esp, ebp
pop ebp
ret