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

Disassembly:
push 0xffffffffffffffff
push 0x4669b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4835f0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
push str.SoftwareKMPlayerLastViewFile
lea ecx, [esp + 0x1c]
call fcn.0040bad0
xor edi, edi
mov dword [esp + 0x68], edi
call fcn.00434084
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4077d5
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], edi
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x18]
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov dword [esp + 0x38], VariantInit
call fcn.00402a60
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x30]
call fcn.004268a0
cmp eax, edi
je 0x4078d6
call fcn.00434084
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x407846
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 2
call fcn.00436588
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 3
call fcn.00436588
lea ecx, [esp + 0x38]
push ecx
lea ebx, [esp + 0x50]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 4
call fcn.004266f0
mov eax, dword [esp + 0x40]
xor edi, edi
mov ebp, eax
test eax, eax
jg 0x407997
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 3
call fcn.004367ad
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 2
call fcn.004367ad
lea eax, [esi - 0x10]
mov byte [esp + 0x68], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x18
push str.SoftwareKMPlayerKMP2.0
lea ecx, [esp + 0x20]
call fcn.004029b0
mov eax, dword [esp + 0x18]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00402a60
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x30]
call fcn.004268a0
test eax, eax
je 0x407ac5
push str.LastFileName
lea ecx, [esp + 0x20]
call fcn.0040bad0
push ecx
mov bl, 5
mov byte [esp + 0x6c], bl
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x470cc8
call fcn.0040bad0
mov byte [esp + 0x6c], 6
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00402a60
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [esp + 0x1c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], bl
call fcn.004269f0
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x407a17
mov ecx, dword [esp + 0x70]
add ecx, 0xe4
call fcn.00402940
jmp 0x407a7c
mov eax, dword [esp + 0x40]
test edi, edi
jl 0x407a12
cmp edi, eax
jge 0x407a12
mov edx, dword [esp + 0x3c]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x20]
call fcn.00402ad0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
je 0x407a08
cmp dword [esp + 0x74], 0
je 0x4079e2
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00402a60
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [ebx], eax
call fcn.004264f0
mov eax, dword [esp + 0x74]
push eax
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], esp
mov ebx, esp
push eax
call fcn.00402a60
mov ecx, dword [esp + 0x7c]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00405520
inc edi
cmp edi, ebp
jl 0x407993
jmp 0x407899
call fcn.00433f65
mov edi, dword [esp + 0x74]
test edi, edi
je 0x407a44
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x78], esp
mov esi, esp
push eax
call fcn.00402a60
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esi], eax
call fcn.004264f0
mov eax, dword [esp + 0x14]
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x7c], esp
mov esi, esp
push eax
call fcn.00402a60
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x7c]
add esp, 4
mov ecx, esi
call fcn.00405520
lea edx, [esp + 0x14]
lea ecx, [esi + 0xe4]
push edx
call fcn.00402ad0
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x407b23
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x407b01
cmp dword [ecx - 8], 0
jge 0x407af3
push 0x80070057
call fcn.00401200
xor edx, edx
mov dword [ecx - 0xc], 0
mov word [ecx], dx
jmp 0x407b23
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8