Function at 0x40fc4d
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d1988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x1724]
call fcn.0041d730
xor ebx, ebx
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x40fe84
push ebp
push edi
push 0x80
mov dword [esp + 0x14], vtable.Table_class_DirEntry_.0
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x10], vtable.DirTable.0
lea edi, [esi + 0x1b88]
mov dword [esp + 0x34], ebx
mov ecx, edi
call fcn.00431cf0
test eax, eax
jne 0x40fcf6
lea ecx, [esi + 0x2548]
call fcn.0042b570
test eax, eax
jne 0x40fd04
lea ecx, [esi + 0x2690]
call fcn.00429c90
test eax, eax
jne 0x40fd04
lea ecx, [esi + 0x27d4]
call fcn.0044f210
test eax, eax
jne 0x40fd04
lea ecx, [esi + 0x1a54]
call fcn.0042b570
test eax, eax
jne 0x40fd04
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, edi
call fcn.0042d950
mov eax, dword [esi + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x40fd57
mov edx, dword [esi + 0x13c]
push edx
call ebp
mov eax, dword [esi + 0x140]
push 0xbb8
push eax
call ebx
cmp eax, 0x102
jne 0x40fd40
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [esi + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea ecx, [esi + 0x1724]
call fcn.0041d780
test eax, eax
je 0x40fd80
push 1
mov ecx, edi
call fcn.0042efe0
mov edx, dword [0x4f83ec]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov al, byte [ecx + 0x2ca]
test al, al
je 0x40fe31
mov ecx, dword [esi + 0x14c]
test ecx, ecx
je 0x40fe31
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x40fe31
mov eax, dword [esi + 0x140]
test eax, eax
je 0x40fe05
mov eax, dword [esi + 0x13c]
push eax
call ebp
mov ecx, dword [esi + 0x140]
push 0xbb8
push ecx
call ebx
cmp eax, 0x102
jne 0x40fde4
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x40fe31
mov eax, dword [esi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x3c]
push ecx
push 0
push esi
push 0x40c360
push 0
push 0
call fcn.004a899b
add esp, 0x18
mov dword [esi + 0x140], eax
mov eax, dword [esp + 0x20]
pop edi
test eax, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0xc], vtable.Table_class_DirEntry_.0
pop ebp
je 0x40fe77
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x40fe77
cmp esi, eax
jge 0x40fe72
test esi, esi
jl 0x40fe72
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x40fe72
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x40fe59
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004bd4c4
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4