Function at 0x40edd0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d18f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x10], edi
cmp dword [edi + 0x14c], ebp
je 0x40f1ab
push 0x20
lea ecx, [esp + 0x50]
call fcn.00419630
mov dword [esp + 0x4c], vtable.DirTable.0
lea esi, [edi + 0x1b88]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x78], ebp
call fcn.0042d950
test eax, eax
je 0x40f19a
mov ecx, esi
call fcn.0042d420
cmp dword [edi + 0x140], ebp
je 0x40ee81
mov ecx, dword [edi + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [edi + 0x140]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ee6e
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [edi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x140], ebp
push ebx
lea ecx, [edi + 0x2858]
call fcn.00450b40
mov eax, dword [esp + 0x58]
mov ebx, vtable.Table_char_.0
mov esi, eax
mov dword [esp + 0x18], ebx
lea ecx, [eax*4]
push ecx
call fcn.004bd49b
lea ecx, [esi - 1]
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x40
mov eax, dword [esp + 0x58]
xor edx, edx
cmp eax, ebp
mov byte [esp + 0x74], 1
mov dword [esp + 0x10], edx
jle 0x40ef96
jmp 0x40eee2
xor ebp, ebp
cmp edx, eax
jge 0x40eef3
cmp edx, ebp
jl 0x40eef3
mov esi, dword [esp + 0x54]
mov esi, dword [esi + edx*4]
jmp 0x40eef5
xor esi, esi
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x40ef82
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x40ef66
mov edx, dword [esp + 0x2c]
add edx, ecx
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax*4], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
inc edx
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x40eee0
mov ebx, vtable.Table_char_.0
xor ebp, ebp
lea edx, [eax*4]
mov esi, eax
push edx
mov dword [esp + 0x38], ebx
call fcn.004bd49b
dec esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x40
mov eax, dword [edi + 0x14c]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x1c]
push ecx
mov eax, dword [eax + 0x28]
mov ecx, dword [edi + 0x144]
push edx
push eax
mov eax, dword [edi + 0xcc]
mov byte [esp + 0x84], 2
push eax
push ecx
call fcn.00454760
add esp, 0x18
test eax, eax
je 0x40f098
mov eax, dword [esp + 0x58]
xor esi, esi
cmp eax, ebp
jle 0x40f08b
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, eax
jge 0x40f021
test esi, esi
jl 0x40f021
mov edx, dword [esp + 0x54]
mov ebx, dword [edx + esi*4]
jmp 0x40f023
xor ebx, ebx
cmp esi, dword [esp + 0x20]
jge 0x40f036
test esi, esi
jl 0x40f036
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
jmp 0x40f038
xor ecx, ecx
cmp esi, dword [esp + 0x3c]
jge 0x40f04b
test esi, esi
jl 0x40f04b
mov edx, dword [esp + 0x38]
mov eax, dword [edx + esi*4]
jmp 0x40f04d
xor eax, eax
test ecx, ecx
je 0x40f07b
test eax, eax
je 0x40f07b
push eax
mov ecx, ebx
call fcn.004252f0
mov ecx, ebx
call fcn.00425540
mov eax, dword [ebx + 0x18]
test eax, eax
jl 0x40f07b
push eax
push eax
mov eax, dword [edi + 0xd0]
push 0x1015
push eax
call ebp
mov eax, dword [esp + 0x58]
inc esi
cmp esi, eax
jl 0x40f014
mov ebx, vtable.Table_char_.0
xor ebp, ebp
push 2
lea ecx, [edi + 0x1b88]
call fcn.0042e460
lea ecx, [edi + 0x1b88]
call fcn.0042d4d0
mov ecx, dword [0x4f83ec]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov cl, byte [eax + 0x2ca]
test cl, cl
je 0x40f108
mov ecx, dword [edi + 0x14c]
cmp ecx, ebp
je 0x40f108
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x40f108
mov ecx, edi
call fcn.00416aa0
cmp dword [edi + 0x140], ebp
jne 0x40f108
mov eax, dword [edi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push 0x40c360
push ebp
push ebp
call fcn.004a899b
add esp, 0x18
mov dword [edi + 0x140], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x74], 1
cmp eax, ebp
mov dword [esp + 0x34], ebx
je 0x40f148
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, ebp
jle 0x40f148
cmp esi, eax
jge 0x40f134
cmp esi, ebp
jl 0x40f134
mov edx, dword [esp + 0x38]
mov eax, dword [edx + esi*4]
jmp 0x40f136
xor eax, eax
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x40]
add esp, 4
inc esi
cmp esi, eax
jl 0x40f127
mov eax, dword [esp + 0x38]
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x18], ebx
cmp eax, ebp
mov byte [esp + 0x74], 0
pop ebx
je 0x40f18d
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebp
jle 0x40f18d
push esi
lea ecx, [esp + 0x18]
call fcn.0049c140
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x40f171
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004bd4c4
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419700
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x68
ret