Function at 0x416fd0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461c41
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [ebx + 0x624], eax
mov eax, dword [ebx + 0x61c]
xor edi, edi
cmp eax, edi
jne 0x417016
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x61c], eax
mov dword [ebx + 0x620], edi
mov ecx, ebx
call fcn.004173e0
test eax, eax
je 0x4172cb
call fcn.00402e60
push 8
mov dword [ebx + 0x620], edi
call fcn.00455403
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
cmp ebp, edi
mov dword [esp + 0x20], edi
je 0x417135
mov dword [ebp], edi
lea esi, [ebp + 4]
mov dword [esi], edi
mov eax, dword [0x46f42c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
push str.LeakCheck.dll
push 0x47a9a8
push 0x104
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 4
call fcn.00407e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x2c]
call fcn.00408290
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x2c]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
mov word [ecx + eax*2], di
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.00402170
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0045514d
mov edx, dword [esp + 0x1c]
push str.4.0.1.1001
push edx
call fcn.004554ed
add esp, 0x14
test eax, eax
jl 0x417117
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417117
mov ecx, dword [esp + 0x2c]
push ebp
push 0x4667f0
push edi
push edi
push 0x466810
push ecx
call fcn.004112d0
mov edx, dword [esp + 0x44]
push esi
push 0x466800
push edi
push edi
push 0x466820
push edx
call fcn.004112d0
add esp, 0x30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 3
call fcn.00408010
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00408010
jmp 0x417137
xor ebp, ebp
cmp ebp, edi
mov dword [esp + 0x20], 0xffffffff
je 0x4172ab
mov eax, dword [0x46f42c]
push ecx
mov edi, esp
mov ecx, 0x47afc0
mov dword [esp + 0x30], esp
test ecx, ecx
mov dword [edi], eax
je 0x4171b1
mov edx, ecx
shr edx, 0x10
jne 0x417174
xor eax, eax
mov ax, cx
mov ecx, edi
push eax
call fcn.00407c70
jmp 0x4171b1
push 0x47afc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4171b1
push esi
mov ecx, edi
call fcn.00408040
test eax, eax
je 0x4171b1
mov edi, dword [edi]
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4171b1
mov eax, ecx
mov esi, 0x47afc0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00417310
mov ecx, dword [ebx + 0x624]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
push edi
push 0x14
push 0x47d
push ecx
mov dword [esp + 0x20], edi
call esi
mov eax, dword [ebp]
cmp eax, edi
je 0x4171e9
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0xc]
jmp 0x4171f1
mov dword [esp + 0x10], 4
mov edx, dword [ebx + 0x624]
push edi
push 0x28
push 0x47d
push edx
call esi
mov eax, dword [ebp]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x2c], edi
je 0x41724c
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push edi
push eax
call dword [ecx + 0x24]
cmp dword [esp + 0x2c], edi
je 0x41724c
mov eax, dword [ebx + 0x620]
mov dword [esp + 0x2c], edi
inc eax
inc esi
mov dword [ebx + 0x620], eax
mov eax, dword [ebp]
cmp eax, edi
je 0x41724c
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
call dword [ecx + 0x24]
cmp dword [esp + 0x2c], edi
jne 0x417221
mov eax, dword [ebx + 0x624]
push edi
push 0x32
push 0x47d
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x14], ebp
mov eax, dword [ebp]
mov dword [esp + 0x20], 6
cmp eax, edi
je 0x41727d
mov dword [ebp], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00411550
lea ecx, [ebp + 4]
mov byte [esp + 0x20], 5
call fcn.004178b0
mov ecx, ebp
mov dword [esp + 0x20], 0xffffffff
call fcn.004178b0
push ebp
call fcn.004535f0
add esp, 4
xor edi, edi
jmp 0x4172b5
mov dword [ebx + 0x620], 0xfffffffe
mov edx, dword [ebx + 0x620]
mov eax, dword [ebx + 0x624]
push edi
push edx
push 0x47c
push eax
jmp 0x4172e4
mov ecx, dword [ebx + 0x624]
push edi
push 0xffffffffffffffff
push 0x47c
mov dword [ebx + 0x620], 0xffffffff
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc