Function at 0x45ba80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d36fb
mov eax, dword fs:[0]
push eax
mov eax, 0x1e94
call fcn.0048b760
mov eax, dword [0x4f816c]
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 - 0x1e90]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1ea0], 1
call fcn.0045b670
push dword [ebp - 0x1e90]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45baf0
xor ebx, ebx
jmp 0x45c710
lea ecx, [ebp - 0x1e89]
call fcn.00445890
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45bbf3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45bb39
call fcn.004561f0
jmp 0x45bb3e
call fcn.0044aec0
push eax
push dword [ebp - 0x1e90]
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 0x45bb60
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00453680
mov edx, eax
test edx, edx
jne 0x45bb91
xor ecx, ecx
jmp 0x45bba5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bb96
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00448a00
mov edx, eax
test edx, edx
jne 0x45bbd0
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040ec80
jmp 0x45c63d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bbd5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040ec80
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00458950
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45bca9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45bc3c
call fcn.00457ed0
jmp 0x45bc41
call fcn.00454480
push eax
push dword [ebp - 0x1e90]
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 0x45bc61
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00448d80
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.00454640
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044b160
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
jne 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00457d10
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45bd7c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45bd0f
call fcn.00456b90
jmp 0x45bd14
call fcn.00449020
push eax
push dword [ebp - 0x1e90]
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 0x45bd34
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00449100
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044d480
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.004455f0
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
jne 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044f080
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45be4f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45bde2
call fcn.004509e0
jmp 0x45bde7
call fcn.00457a70
push eax
push dword [ebp - 0x1e90]
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 0x45be07
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00450e40
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.00450900
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00446690
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45bf08
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45be98
call fcn.004533e0
jmp 0x45be9d
call fcn.00458b10
push eax
push dword [ebp - 0x1e90]
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 0x45bec0
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00453140
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044fcc0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00456d50
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45bfbe
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45bf51
call fcn.00449d40
jmp 0x45bf56
call fcn.00458410
push eax
push dword [ebp - 0x1e90]
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 0x45bf76
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.0044c040
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044d8e0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044d3a0
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c078
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c007
call fcn.00454720
jmp 0x45c00c
call fcn.00447420
push eax
push dword [ebp - 0x1e90]
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 0x45c030
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00449c60
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044dc60
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00445dd0
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c12e
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c0c1
call fcn.00458db0
jmp 0x45c0c6
call fcn.00447960
push eax
push dword [ebp - 0x1e90]
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 0x45c0e6
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.0044b080
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.00445190
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044cf40
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c1e8
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c177
call fcn.00445510
jmp 0x45c17c
call fcn.0044ca00
push eax
push dword [ebp - 0x1e90]
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 0x45c1a0
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00446ee0
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044a360
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044ed00
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c29e
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c231
call fcn.00456c70
jmp 0x45c236
call fcn.00448140
push eax
push dword [ebp - 0x1e90]
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 0x45c256
sub edx, esi
lea eax, [ebp - 0x1460]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00449640
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044cae0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00457610
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c358
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c2e7
call fcn.004464d0
jmp 0x45c2ec
call fcn.004463f0
push eax
push dword [ebp - 0x1e90]
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 0x45c310
sub edx, esi
lea eax, [ebp - 0x1668]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.004486f0
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.00450c80
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00454aa0
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c40e
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c3a1
call fcn.00458870
jmp 0x45c3a6
call fcn.00445f90
push eax
push dword [ebp - 0x1e90]
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 0x45c3c6
sub edx, esi
lea eax, [ebp - 0x1870]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00453e60
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.004450b0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.004476c0
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c4c8
push 0x208
lea eax, [ebp - 0x1a78]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c457
call fcn.00452260
jmp 0x45c45c
call fcn.00446310
push eax
push dword [ebp - 0x1e90]
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 0x45c480
sub edx, esi
lea eax, [ebp - 0x1a78]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00445270
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.00448ca0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.0044ce60
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c57e
push 0x208
lea eax, [ebp - 0x1c80]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c511
call fcn.0044dd40
jmp 0x45c516
call fcn.0044b240
push eax
push dword [ebp - 0x1e90]
lea eax, [ebp - 0x1c80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1c80]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45c536
sub edx, esi
lea eax, [ebp - 0x1c80]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00447260
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.0044e280
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
lea ecx, [ebp - 0x1e89]
call fcn.00445a50
push eax
push esi
call fcn.00414b00
add esp, 8
test al, al
je 0x45c635
push 0x208
lea eax, [ebp - 0x1e88]
push 0
push eax
call fcn.004ad8d0
add esp, 0xc
call fcn.0045c770
lea ecx, [ebp - 0x1e89]
test eax, eax
je 0x45c5c7
call fcn.004553f0
jmp 0x45c5cc
call fcn.00449b80
push eax
push dword [ebp - 0x1e90]
lea eax, [ebp - 0x1e88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1e88]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45c5f0
sub edx, esi
lea eax, [ebp - 0x1e88]
sar edx, 1
push edx
push eax
call fcn.0040ec80
lea ecx, [ebp - 0x1e89]
call fcn.00446d20
push eax
mov ecx, edi
call fcn.00414ab0
lea ecx, [ebp - 0x1e89]
call fcn.004577d0
push eax
lea ecx, [edi + 8]
call fcn.00414ab0
jmp 0x45c63d
xor eax, eax
mov dword [ebp - 0x1ea0], eax
mov dword [edi + 0xc], 0
cmp dword [0x4f80f8], 0
je 0x45c6f1
push str.ntdll.dll
mov dword [ebp - 0x1e98], 0
xor ebx, ebx
mov dword [ebp - 0x1e9c], 0
mov dword [ebp - 0x1e94], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45c6e7
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45c6bb
lea ecx, [ebp - 0x1e94]
push ecx
lea ecx, [ebp - 0x1e9c]
push ecx
lea ecx, [ebp - 0x1e98]
push ecx
call eax
movzx eax, word [ebp - 0x1e94]
mov ebx, 1
mov dword [ebp - 0x1e94], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x45c6e7
cmp dword [ebp - 0x1e98], 5
jne 0x45c6e7
mov eax, dword [0x52208c]
mov ecx, 1
cmp dword [ebp - 0x1e9c], ecx
cmove eax, ecx
mov dword [0x52208c], eax
mov dword [0x4f80f8], 0
cmp dword [0x52208c], 0
je 0x45c70a
call fcn.0045cbd0
test eax, eax
je 0x45c70a
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x1ea0]
mov eax, dword [ebp - 0x1e90]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45c735
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.0048b51d
mov esp, ebp
pop ebp
ret 0xc