Function at 0x447140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8d5b
mov eax, dword fs:[0]
push eax
mov eax, 0x146c
call fcn.00470e90
mov eax, dword [0x4dc1c4]
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 - 0x1468]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1478], 1
call fcn.00446e90
push dword [ebp - 0x1468]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4471b0
xor ebx, ebx
jmp 0x447a36
lea ecx, [ebp - 0x1461]
call fcn.00437b70
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x4472b3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4471f9
call fcn.004434b0
jmp 0x4471fe
call fcn.0043b4c0
push eax
push dword [ebp - 0x1468]
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 0x447220
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.00441740
mov edx, eax
test edx, edx
jne 0x447251
xor ecx, ecx
jmp 0x447265
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447256
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.00439c40
mov edx, eax
test edx, edx
jne 0x447290
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040d1b0
jmp 0x447963
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447295
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.0040d1b0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.00444c50
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x447369
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4472fc
call fcn.00444630
jmp 0x447301
call fcn.004420e0
push eax
push dword [ebp - 0x1468]
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 0x447321
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.00439ee0
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.004421c0
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.0043b680
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
jne 0x447963
lea ecx, [ebp - 0x1461]
call fcn.00444550
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x44743c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4473cf
call fcn.004439f0
jmp 0x4473d4
call fcn.0043a0a0
push eax
push dword [ebp - 0x1468]
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 0x4473f4
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043a180
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043d0e0
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.004379b0
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
jne 0x447963
lea ecx, [ebp - 0x1461]
call fcn.0043e3a0
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x44750f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4474a2
call fcn.0043f7c0
jmp 0x4474a7
call fcn.004442b0
push eax
push dword [ebp - 0x1468]
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 0x4474c7
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043fb40
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043f6e0
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.00438270
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x4475c8
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x447558
call fcn.004414a0
jmp 0x44755d
call fcn.00444e10
push eax
push dword [ebp - 0x1468]
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 0x447580
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.00441200
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043ed40
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.00443bb0
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x44767e
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x447611
call fcn.0043a960
jmp 0x447616
call fcn.004449b0
push eax
push dword [ebp - 0x1468]
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 0x447636
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043bf40
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043d2a0
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.0043d000
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x447738
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4476c7
call fcn.004422a0
jmp 0x4476cc
call fcn.00438ba0
push eax
push dword [ebp - 0x1468]
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 0x4476f0
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043a880
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043d540
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.00437ef0
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x4477ee
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x447781
call fcn.004450b0
jmp 0x447786
call fcn.00438e40
push eax
push dword [ebp - 0x1468]
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 0x4477a6
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043b5a0
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.00437630
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.0043cba0
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x4478a8
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x447837
call fcn.004378d0
jmp 0x44783c
call fcn.0043c740
push eax
push dword [ebp - 0x1468]
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 0x447860
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.00438900
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043ace0
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
lea ecx, [ebp - 0x1461]
call fcn.0043e020
push eax
push esi
call fcn.00412320
add esp, 8
test al, al
je 0x44795b
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.00492fb0
add esp, 0xc
call fcn.00447a90
lea ecx, [ebp - 0x1461]
test eax, eax
je 0x4478f1
call fcn.00443ad0
jmp 0x4478f6
call fcn.00439540
push eax
push dword [ebp - 0x1468]
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 0x447916
sub edx, esi
lea eax, [ebp - 0x1460]
sar edx, 1
push edx
push eax
call fcn.0040d1b0
lea ecx, [ebp - 0x1461]
call fcn.0043a5e0
push eax
mov ecx, edi
call fcn.004122d0
lea ecx, [ebp - 0x1461]
call fcn.0043c820
push eax
lea ecx, [edi + 8]
call fcn.004122d0
jmp 0x447963
xor eax, eax
mov dword [ebp - 0x1478], eax
mov dword [edi + 0xc], 0
cmp dword [0x4dc150], 0
je 0x447a17
push str.ntdll.dll
mov dword [ebp - 0x1470], 0
xor ebx, ebx
mov dword [ebp - 0x1474], 0
mov dword [ebp - 0x146c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x447a0d
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4479e1
lea ecx, [ebp - 0x146c]
push ecx
lea ecx, [ebp - 0x1474]
push ecx
lea ecx, [ebp - 0x1470]
push ecx
call eax
movzx eax, word [ebp - 0x146c]
mov ebx, 1
mov dword [ebp - 0x146c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x447a0d
cmp dword [ebp - 0x1470], 5
jne 0x447a0d
mov eax, dword [0x505820]
mov ecx, 1
cmp dword [ebp - 0x1474], ecx
cmove eax, ecx
mov dword [0x505820], eax
mov dword [0x4dc150], 0
cmp dword [0x505820], 0
je 0x447a30
call fcn.00447ef0
test eax, eax
je 0x447a30
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x1478]
mov eax, dword [ebp - 0x1468]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x447a5b
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.00470c70
mov esp, ebp
pop ebp
ret 0xc