Function at 0x405600
Capabilities:
Create thread
Resolve function by parsing pe exports
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45809c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x46af24]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xa6c]
mov edx, dword [edi + 0xa68]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xa7c]
push ecx
mov dword [edi + 0xf04], eax
add eax, 8
push ecx
mov dword [edi + 0xf00], eax
xor eax, eax
push 1
lea ebx, [edi + 0xf2c]
push ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], 0x3e8
mov dword [edi + 0xe8c], edx
mov dword [ebx], 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call esi
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0xf34]
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xf38]
mov ecx, dword [eax]
push 0
lea eax, [edi + 0xf28]
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], eax
push 1
lea eax, [edi + 0xb8]
push 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x58], 1
call esi
push eax
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0x414040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [edi + 0xba0]
push edx
push eax
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebx], 0
je 0x40591d
mov eax, dword [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push 3
mov esi, 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x40578d
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0x50
jmp 0x405914
cmp eax, esi
je 0x4058b9
cmp eax, 2
je 0x4058b9
cmp eax, 0x102
jne 0x405914
push edi
call fcn.004048a0
test dword [esp + 0x1c], 0xfffffffc
je 0x4057d8
mov ecx, dword [edi + 0xf04]
call fcn.0044237a
mov ecx, dword [edi + 0xf04]
push esi
call fcn.00442947
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 0xf00]
mov ecx, dword [edi + 0xe8c]
inc dword [esp + 0x1c]
push eax
call fcn.00442c2c
mov ecx, dword [edi + 0xf04]
mov esi, eax
push 0
mov dword [esp + 0x28], esi
call fcn.00442947
test esi, 0x10000000
je 0x405841
cmp dword [esp + 0x14], 0
mov dword [ebx], 0
je 0x405823
lea esi, [esp + 0x44]
call fcn.00414210
mov esi, dword [esp + 0x24]
cmp dword [edi + 0xa4c], 0
jne 0x405837
mov ecx, dword [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0xf30], 1
test esi, 0x20000000
je 0x405865
cmp dword [esp + 0x14], 0
jne 0x405865
lea esi, [esp + 0x44]
call fcn.004141c0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], 1
test esi, 0x40000000
je 0x405885
cmp dword [esp + 0x14], 0
je 0x405885
lea esi, [esp + 0x44]
call fcn.00414210
mov dword [esp + 0x14], 0
cmp dword [esp + 0x44], 0
jne 0x405899
cmp dword [esp + 0x28], 0
je 0x405899
mov dword [ebx], 0
cmp dword [edi + 0xf24], 0
je 0x405914
mov eax, 1
mov dword [ebx], 0
mov dword [edi + 0xf30], eax
mov dword [esp + 0x4c], eax
jmp 0x405914
cmp dword [esp + 0x14], 0
mov dword [ebx], 0
mov dword [edi + 0xf30], esi
mov dword [esp + 0x4c], esi
je 0x405914
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x68]
test eax, eax
je 0x4058e3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x64]
cmp dword [edx + 0xb9c], 0
je 0x40590c
test esi, esi
je 0x40590c
mov eax, dword [esi + 0x1030]
test eax, eax
je 0x40590c
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40590c
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esp + 0x14], 0
cmp dword [ebx], 0
jne 0x405754
cmp dword [edi + 0xc74], 0
mov ecx, dword [edi + 0xa7c]
je 0x405930
push 0x12
jmp 0x405932
push 9
call fcn.00441f5d
mov ecx, dword [edi + 0xf04]
push 1
call fcn.00442947
mov eax, dword [edi + 0xf00]
cmp dword [eax + 0x18], 0
je 0x405959
mov ecx, dword [edi + 0xe68]
mov dword [eax + 0x78], ecx
mov eax, dword [edi + 0xf00]
mov ecx, dword [edi + 0xe8c]
push eax
call fcn.00442c2c
mov ecx, dword [edi + 0xf00]
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xf34]
call fcn.0044e00e
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x405ab5
push 1
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x78], 0
test esi, esi
je 0x4059c3
call dword [sym.imp.mfc100u.dll_AfxGetModuleState]
mov ecx, dword [eax + 4]
call dword [sym.imp.mfc100u.dll_CCmdTarget::BeginWaitCursor]
mov dword [esp + 0x28], esi
jmp 0x4059cb
mov dword [esp + 0x28], 0
mov dword [esp + 0x78], 0xffffffff
mov edx, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x32
push edx
call esi
test eax, eax
je 0x405a26
cmp dword [esp + 0x44], 0
je 0x405a26
push edi
call fcn.004048a0
mov ecx, dword [edi + 0xf34]
call fcn.0044e00e
test eax, eax
je 0x405a0c
mov dword [edi + 0xf24], 1
cmp dword [edi + 0xf24], 0
jne 0x405d33
mov eax, dword [esp + 0x60]
push 0x32
push eax
call esi
test eax, eax
jne 0x4059e6
mov ecx, dword [edi + 0xf00]
mov dword [ecx + 4], 1
cmp dword [esp + 0x44], 0
mov esi, 0x320
je 0x405a9c
nop
mov edx, esi
dec esi
test edx, edx
je 0x405a77
mov ecx, dword [edi + 0xf04]
push 1
call fcn.00442947
mov eax, dword [edi + 0xf00]
mov ecx, dword [edi + 0xe8c]
push eax
call fcn.00442c2c
push edi
call fcn.004048a0
push 0x32
call ebx
cmp dword [esp + 0x44], 0
jne 0x405a40
test esi, esi
jg 0x405a9c
push edi
call fcn.004048a0
mov ecx, dword [esp + 0x5c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, 0x14
push 0x32
dec esi
call ebx
test esi, esi
jg 0x405a93
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405b0d
call fcn.004046f0
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x405b0d
cmp dword [esp + 0x44], 0
mov esi, 0x3c
je 0x405b0d
mov edx, dword [esp + 0x5c]
push 0xf
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x14
call ebx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405b0d
lea ebx, [ebx]
test esi, esi
je 0x405afc
push 0x1f4
call ebx
push edi
call fcn.004048a0
mov eax, dword [esp + 0x44]
dec esi
test eax, eax
jne 0x405ae0
jmp 0x405b0d
test eax, eax
je 0x405b0d
mov eax, dword [esp + 0x5c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0xf04]
call fcn.0044237a
cmp dword [edi + 0xc74], 0
mov ecx, dword [edi + 0xf04]
je 0x405b2b
push 0x12
jmp 0x405b2d
push 5
call fcn.00441f5d
mov ecx, dword [edi + 0xf00]
mov edx, dword [edi + 0xf30]
mov dword [ecx + 0x58], edx
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x9c]
mov eax, dword [edi + 0xf00]
mov dword [eax + 0x74], edx
mov ecx, dword [edi + 0xf34]
call fcn.0044e00e
test eax, eax
jne 0x405b72
mov ecx, dword [edi + 0xf38]
call fcn.0044e00e
test eax, eax
je 0x405b7c
mov dword [edi + 0xf24], 1
mov eax, dword [edi + 0xf00]
mov ecx, dword [edi + 0xe8c]
push eax
call fcn.00442c2c
cmp dword [edi + 0xf24], 0
jne 0x405d33
mov ecx, dword [esp + 0x2c]
cmp dword [ecx], 0
jne 0x405d33
mov eax, dword [edi + 0xf00]
mov ecx, dword [eax + 0x60]
test ecx, 0x40000
je 0x405bf8
mov dword [edi + 0xf10], 6
mov dword [edi + 0xf0c], 1
mov edx, dword [eax + 0x60]
or edx, 6
lea esi, [edi + 0xb8]
push esi
mov dword [edi + 0xf10], edx
call fcn.0041d900
add esp, 4
push 0
push esi
call fcn.0041d7b0
add esp, 8
jmp 0x405d33
test ecx, 0x20000
je 0x405c8c
mov esi, edi
call fcn.00405fe0
push edi
call fcn.004048a0
call fcn.00405e90
mov eax, dword [edi + 0xf00]
test dword [eax + 0x60], 0x80000
lea esi, [edi + 0xb8]
je 0x405c3c
push 0x218
push 0x20f
lea ecx, [esp + 0x20]
push ecx
jmp 0x405c4b
push 0x1c6
push 0x176
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004106c0
add esp, 0xc
test dword [esp + 0x18], 0x100000
jne 0x405c8c
push esi
mov dword [edi + 0xf0c], 1
mov dword [edi + 0xf10], 6
call fcn.0041d900
add esp, 4
push 1
push esi
call fcn.0041d7b0
add esp, 8
jmp 0x405d33
cmp dword [edi + 0xbdc], 0
je 0x405cb4
cmp dword [edi + 0xc88], 3
jne 0x405cb4
cmp dword [edi + 0xbbc], 0
jne 0x405d33
mov esi, edi
call fcn.00405fe0
jmp 0x405d33
cmp dword [edi + 0xbbc], 0
jne 0x405d33
cmp dword [edi + 0xc40], 0
jne 0x405d33
cmp dword [edi + 0xc9c], 3
je 0x405d33
mov esi, edi
call fcn.00405e90
call fcn.00405fe0
push edi
call fcn.004048a0
mov ecx, dword [edi + 0xe8c]
call fcn.00442e58
test eax, 0x2000000
jne 0x405d2d
mov ecx, dword [edi + 0xf34]
call fcn.0044e00e
test eax, eax
jne 0x405e5f
cmp dword [edi + 0xf24], eax
jne 0x405d33
mov ecx, dword [edi + 0xe8c]
call fcn.00442e58
push edi
mov esi, eax
call fcn.004048a0
push 0x32
call ebx
test esi, 0x2000000
je 0x405cf3
push edi
call fcn.004048a0
mov esi, edi
call fcn.00405e90
mov eax, dword [edi + 0xf00]
cmp dword [eax + 0x5c], 0
je 0x405d5c
push 0x30
lea eax, [edi + 0xb8]
push 0x11a
push eax
call fcn.00445c9f
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov ecx, dword [edi + 0xf34]
test ecx, ecx
je 0x405d93
call fcn.0044dfb4
mov esi, dword [edi + 0xf34]
test esi, esi
je 0x405d93
mov ecx, esi
call fcn.0044e096
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ecx, dword [edi + 0xf38]
test ecx, ecx
je 0x405dbd
call fcn.0044dfb4
mov esi, dword [edi + 0xf38]
test esi, esi
je 0x405dbd
mov ecx, esi
call fcn.0044e096
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, esi
je 0x405dce
push eax
call ebx
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x405ddd
push eax
call ebx
mov dword [esp + 0x60], esi
cmp dword [edi + 0xc80], esi
je 0x405e35
cmp dword [edi + 0xf10], esi
jne 0x405e35
cmp dword [edi + 0xf30], esi
jne 0x405e35
mov eax, dword [edi + 0xa2c]
mov ecx, dword [eax + 0xa0]
lea edx, [esp + 0x18]
push edx
push ecx
lea ecx, [edi + 0xb8]
call fcn.00410940
add esp, 8
test dword [esp + 0x18], 0x100000
jne 0x405e35
mov edx, dword [edi + 0xc84]
mov dword [edi + 0xf0c], 1
mov dword [edi + 0xf10], edx
mov eax, dword [edi + 0xf00]
cmp dword [eax + 0x18], esi
je 0x405e4a
mov ecx, dword [esp + 0x2c]
mov dword [ecx], 0xc8
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xf24], 1
jmp 0x405d33