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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x419008]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x17
mov dword [esp + 0x38], eax
mov eax, dword [edx]
push 0x415e70
push edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [eax + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x402955
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x70]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x402955
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x402955
mov ecx, dword [esp + 0x24]
call fcn.00402460
test eax, eax
je 0x402955
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x402955
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x24]
push 0
push 0x465
push edi
call esi
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x28]
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push 0x20000
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x402955
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 0x415ee8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
js 0x402955
lea eax, [esp + 0x6c]
push eax
push str.Capture
call dword [sym.imp.AVRT.dll_AvSetMmThreadCharacteristicsW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402955
mov esi, dword [esp + 0x70]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [esp + 0x7c]
push esi
call fcn.00410330
mov dword [esp + 0x78], eax
mov eax, esi
mov dword [esp + 0x7c], edx
cdq
sub eax, edx
mov ecx, eax
mov eax, 0x68db8bad
sar ecx, 1
imul ecx
push 0
sar edx, 0xc
lea eax, [esp + 0x7c]
push 0
mov esi, edx
push 0
shr esi, 0x1f
add esi, edx
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x402945
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x402945
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x464
push edi
call esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
push 0
push eax
push 2
mov dword [esp + 0x24], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40294b
nop dword [eax + eax]
cmp eax, 1
jne 0x402937
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x64]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x402921
cmp dword [esp + 0x64], 0
jne 0x4028b0
mov eax, dword [0x41a41c]
cmp eax, 0x1e
jle 0x4028aa
lea eax, [esp + 0x30]
mov dword [0x41a41c], 0
push eax
push 0x415e90
push 0x17
push 0
push 0x415e80
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4029e1
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
call dword [eax + 0x10]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x40]
xorps xmm0, xmm0
push edx
movaps xmmword [esp + 0x44], xmm0
movaps xmmword [esp + 0x54], xmm0
mov ecx, dword [eax]
push 0x411260
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x50]
push edx
push 0x411260
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [esp + 0x58]
push dword [esp + 0x4c]
call fcn.00407747
mov ecx, dword [esp + 0x3c]
add esp, 8
neg eax
sbb eax, eax
mov edx, dword [ecx]
inc eax
push ecx
mov dword [esp + 0x14], eax
call dword [edx + 8]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], 0
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
cmp dword [esp + 0x10], 0
je 0x40294b
jmp 0x402903
inc eax
mov dword [0x41a41c], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x80]
push 0
push 0
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x402937
mov edx, dword [esp + 0x68]
test edx, edx
je 0x4028f8
mov eax, dword [esp + 0x24]
push dword [esp + 0x3c]
movzx eax, word [eax + 0xc]
imul eax, edx
push eax
push 0x466
push edi
call esi
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x8c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x402740
jmp 0x40294b
push 0
push 2
push 0x464
push edi
call esi
mov dword [esp + 0x10], 0
jmp 0x40294b
push 0
push 2
push 0x464
push edi
call esi
jmp 0x40294b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x1c]
call dword [sym.imp.AVRT.dll_AvRevertMmThreadCharacteristics]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40296b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402982
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40299b
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4029ce
cmp dword [esp + 0x14], 0
je 0x4029c0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
push 0
push 1
push 0x464
push edi
call esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x20], 0
cmp dword [esp + 0x10], 0
jne 0x4029e1
push 0
push 2
push 0x464
push edi
call esi
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040436d
mov esp, ebp
pop ebp
ret