Function at 0x410980
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x451d23
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4621a0]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
push edi
mov eax, dword [0x4621a0]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [esp + 0x118]
xor ebx, ebx
mov esi, edx
cmp eax, ebx
je 0x410c5f
cmp eax, 1
je 0x410c5f
cmp eax, 2
jne 0x410c33
lea edi, [eax + 6]
cmp dword [esp + 0x11c], ebx
jne 0x410c07
cmp dword [esi + 0x34], edi
jb 0x4109f9
mov eax, dword [esi + 0x20]
jmp 0x4109fc
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410c07
cmp dword [esi + 0x34], edi
jb 0x410a15
mov esi, dword [esi + 0x20]
jmp 0x410a18
add esi, 0x20
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00412010
mov dword [esp + 0x110], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0x1c]
test cl, 6
jne 0x410bf1
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov byte [esp + 0x110], 1
mov edx, dword [eax + 4]
push 0xa
lea eax, [esp + edx + 0x18]
push eax
call fcn.00413810
movzx ecx, al
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xb0]
call fcn.00413ed0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x410be5
jmp 0x410ab0
push 1
push 0x456b48
lea ecx, [esp + 0xb0]
push ecx
call fcn.00412e10
push 1
push 0x456b4c
lea edx, [esp + 0xb0]
push edx
mov edi, eax
call fcn.00412e10
push 2
mov esi, eax
push 0x456b50
lea eax, [esp + 0xb0]
push eax
call fcn.00412e10
cmp eax, 0xffffffff
je 0x410aff
cmp edi, 0xffffffff
je 0x410aff
cmp esi, 0xffffffff
jne 0x410b4e
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x18]
push eax
call fcn.00413810
movzx ecx, al
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xb0]
call fcn.00413ed0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x410ab0
jmp 0x410be5
sub esi, edi
dec esi
push esi
lea ecx, [edi + 1]
lea esi, [esp + 0xc8]
lea edx, [esp + 0xac]
call fcn.00411fe0
xor ecx, ecx
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
mov byte [esp + 0x110], 3
cmp dword [esp + 0xdc], 0x10
mov eax, dword [esp + 0xc8]
jae 0x410ba4
lea eax, [esp + 0xc8]
lea edx, [esp + 0xe8]
push edx
push eax
call fcn.00418d30
sub esp, 0x14
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0040ec00
call fcn.00425dc0
lea esi, [esp + 0xe8]
call fcn.00404d90
lea ecx, [esp + 0xc4]
call fcn.0040cf80
lea ecx, [esp + 0xa8]
call fcn.0040cf80
lea eax, [esp + 0x14]
mov dword [esp + 0x110], 0xffffffff
call fcn.00410c90
jmp 0x410c5f
mov eax, str.error
lea ecx, [esp + 0xc4]
call fcn.00404d50
cmp dword [esp + 0xdc], edi
jb 0x410c5f
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.00434270
add esp, 4
jmp 0x410c5f
cmp eax, 3
je 0x410c3d
cmp eax, 4
jne 0x410c5f
mov edx, dword [ecx + 0x368]
mov eax, dword [edx + 0x8c]
push ebx
add ecx, 0x368
push ebx
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.0043427b
add esp, 0x104
ret 8