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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2a73
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x639210]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x639210]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, ecx
push 0x66
push 0x606230
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.0041da10
mov dword [esp + 0xf8], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 0x10
push ecx
cmovae eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004104e0
mov byte [esp + 0xf8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x84]
push ecx
push eax
push 0x6495dc
call fcn.00405ee0
lea ecx, [esp + 0x84]
call fcn.00402220
mov dword [esp + 0xf8], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x40ec1a
push dword [esp + 0x14]
call fcn.0043f3a3
add esp, 4
push ecx
lea ecx, [esi + 0x270]
mov dword [esp + 0x78], 0x6062c0
mov dword [esp + 0x7c], 0
call fcn.004026b0
movq xmm0, qword [esp + 0x74]
push eax
push str._tGMChangeMonitorFun_Running__s_...
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x14
push 0xffffffffffffffff
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x148], 0
jne 0x40ef5c
jmp 0x40ec80
mov ebx, 1
test eax, eax
jne 0x40ef01
push ecx
lea ecx, [esi + 0x270]
mov dword [esp + 0x68], 0x606368
mov dword [esp + 0x6c], eax
call fcn.004026b0
movq xmm0, qword [esp + 0x64]
push eax
push str._tWaitForSingleObject_m_hGlobalEvent_WAIT_OBJECT_0_ename_s.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], ebx
call fcn.00404e40
sub esp, 0x4c
xor eax, eax
mov edi, esp
mov dword [esp + 0xc0], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [esp + 0x158], 2
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], eax
mov byte [edi + 0x18], al
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], eax
mov word [edi + 0x30], ax
mov dword [edi + 0x5c], 0xf
mov dword [edi + 0x58], eax
mov byte [edi + 0x48], al
lea edx, [esi + 0x68]
mov byte [esp + 0x158], 5
cmp dword [edx + 0x14], 8
jb 0x40ed27
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40ed31
xor eax, eax
jmp 0x40ed51
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x70], ecx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed40
sub eax, dword [esp + 0x70]
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.0041d070
mov dword [esp + 0x158], 0xffffffff
call fcn.004116c0
mov edi, eax
test edi, edi
je 0x40eec1
xorps xmm0, xmm0
mov dword [esp + 0x7c], 0
movq qword [esp + 0x74], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0xf8], 6
mov ecx, 0x19d
mov eax, dword [esi + 0x128]
test eax, eax
je 0x40edbd
lea ecx, [eax + 0x19d]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x40edc8
mov eax, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.0040fc40
test eax, eax
je 0x40ede2
cmp dword [eax], 0xabcdefab
jne 0x40ede2
mov ebx, dword [eax + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [esp + 0xf8], 0xffffffff
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40ee05
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x40ee10
push eax
call edi
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
cmp ebx, 1
je 0x40ef01
cmp dword [esi + 0x140], 0
push ecx
lea ecx, [esi + 0x270]
je 0x40ee8e
mov dword [esp + 0x30], 0x6064a0
mov dword [esp + 0x34], 0
call fcn.004026b0
movq xmm0, qword [esp + 0x2c]
push eax
push str._tWaitForSingleObject_have_notify_fun_ename_s_.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
mov eax, dword [esi + 0x140]
add esp, 0x14
push dword [esi + 0x144]
push ebx
call eax
jmp 0x40ef41
mov dword [esp + 0x40], 0x606538
mov dword [esp + 0x44], 0
call fcn.004026b0
movq xmm0, qword [esp + 0x3c]
push eax
push str._tWaitForSingleObject_no_notify_fun_ename_s_.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 2
jmp 0x40ef39
push ecx
lea ecx, [esi + 0x270]
mov dword [esp + 0x50], 0x606408
mov dword [esp + 0x54], 0
call fcn.004026b0
movq xmm0, qword [esp + 0x4c]
push eax
push str._tWaitForSingleObject_SemaphoreGet_failed_ename_s_.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x14
push ecx
lea ecx, [esi + 0x270]
mov dword [esp + 0x18], 0x6065d8
mov dword [esp + 0x1c], 0
call fcn.004026b0
movq xmm0, qword [esp + 0x14]
push eax
push str._tWaitForSingleObject_set_crc_changed_failed_ename_s_.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x14
push 0xffffffffffffffff
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x148], 0
je 0x40ec80
push str._tGMChangeMonitorFun_end
sub esp, 0xc
mov dword [esp + 0x24], 0x606658
mov eax, esp
mov dword [esp + 0x28], 0
movq xmm0, qword [esp + 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x10
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00567455
mov esp, ebp
pop ebp
ret