Function at 0x455440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caf2b
mov eax, dword fs:[0]
push eax
mov eax, 0x1a84
call fcn.00482ff0
mov eax, dword [0x4f016c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1a80]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1a90], 1
call fcn.004550a0
push dword [ebp - 0x1a80]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4554b0
xor ebx, ebx
jmp 0x455f60
lea ecx, [ebp - 0x1a79]
call fcn.00441610
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x4555b3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x4554f9
call fcn.00445f90
jmp 0x4554fe
call fcn.0044dda0
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x218]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455520
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.0044b4f0
mov edx, eax
test edx, edx
jne 0x455551
xor ecx, ecx
jmp 0x455565
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455556
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00440f70
mov edx, eax
test edx, edx
jne 0x455590
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040e260
jmp 0x455e8d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455595
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040e260
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.004418b0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455669
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x4555fc
call fcn.00444c50
jmp 0x455601
call fcn.004515a0
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x420]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455621
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.0044c1a0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00446230
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00449eb0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
jne 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00442410
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x45573c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x4556cf
call fcn.0044c0c0
jmp 0x4556d4
call fcn.00444a90
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x628]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4556f4
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.004507a0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00441050
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.0044b6b0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
jne 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.0044bf00
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x45580f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x4557a2
call fcn.004471a0
jmp 0x4557a7
call fcn.00448780
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x830]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4557c7
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.0044f7e0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.0044b5d0
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00444ef0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x4558c8
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455858
call fcn.00446310
jmp 0x45585d
call fcn.00442090
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xa38]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455880
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.004425d0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.004450b0
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00451bc0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x45597e
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455911
call fcn.00450420
jmp 0x455916
call fcn.00440a80
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xc40]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455936
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00442bf0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.0044b090
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00440e90
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455a38
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x4559c7
call fcn.00443590
jmp 0x4559cc
call fcn.004522c0
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xe48]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4559f0
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00450a40
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.0044f9a0
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00440c40
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455aee
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455a81
call fcn.0044adf0
jmp 0x455a86
call fcn.00449510
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1050]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455aa6
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00444010
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00450180
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00451300
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455ba8
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455b37
call fcn.0044d320
jmp 0x455b3c
call fcn.0044da20
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1258]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455b60
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00442250
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00442790
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00451a00
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455c5e
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455bf1
call fcn.0044f2a0
jmp 0x455bf6
call fcn.004448d0
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1460]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455c16
sub edx, esi
lea eax, [ebp - 0x1460]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.00446770
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00448160
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00452480
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455d18
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455ca7
call fcn.00451140
jmp 0x455cac
call fcn.00445cf0
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1668]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455cd0
sub edx, esi
lea eax, [ebp - 0x1668]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.0044b250
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.0044fee0
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.00442330
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455dce
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455d61
call fcn.0044d240
jmp 0x455d66
call fcn.00442950
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1870]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1870]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455d86
sub edx, esi
lea eax, [ebp - 0x1870]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.004442b0
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00440b60
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
lea ecx, [ebp - 0x1a79]
call fcn.004506c0
push eax
push esi
call fcn.00413c70
add esp, 8
test al, al
je 0x455e85
push 0x208
lea eax, [ebp - 0x1a78]
push 0
push eax
call fcn.004a5110
add esp, 0xc
call fcn.00455fc0
lea ecx, [ebp - 0x1a79]
test eax, eax
je 0x455e17
call fcn.004470c0
jmp 0x455e1c
call fcn.0044fd20
push eax
push dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1a78]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x455e40
sub edx, esi
lea eax, [ebp - 0x1a78]
sar edx, 1
push edx
push eax
call fcn.0040e260
lea ecx, [ebp - 0x1a79]
call fcn.0044d860
push eax
mov ecx, edi
call fcn.00413c20
lea ecx, [ebp - 0x1a79]
call fcn.00441450
push eax
lea ecx, [edi + 8]
call fcn.00413c20
jmp 0x455e8d
xor eax, eax
mov dword [ebp - 0x1a90], eax
mov dword [edi + 0xc], 0
cmp dword [0x4f00f8], 0
je 0x455f41
push str.ntdll.dll
mov dword [ebp - 0x1a88], 0
xor ebx, ebx
mov dword [ebp - 0x1a8c], 0
mov dword [ebp - 0x1a84], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x455f37
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x455f0b
lea ecx, [ebp - 0x1a84]
push ecx
lea ecx, [ebp - 0x1a8c]
push ecx
lea ecx, [ebp - 0x1a88]
push ecx
call eax
movzx eax, word [ebp - 0x1a84]
mov ebx, 1
mov dword [ebp - 0x1a84], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x455f37
cmp dword [ebp - 0x1a88], 5
jne 0x455f37
mov eax, dword [0x519ddc]
mov ecx, 1
cmp dword [ebp - 0x1a8c], ecx
cmove eax, ecx
mov dword [0x519ddc], eax
mov dword [0x4f00f8], 0
cmp dword [0x519ddc], 0
je 0x455f5a
call fcn.00456420
test eax, eax
je 0x455f5a
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x1a90]
mov eax, dword [ebp - 0x1a80]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x455f85
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482dad
mov esp, ebp
pop ebp
ret 0xc