Function at 0x1005f680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7bfb
mov eax, dword fs:[0]
push eax
mov eax, 0x209c
call fcn.100903a0
mov eax, dword [0x100fd16c]
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 - 0x2098]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x20a8], 1
call fcn.1005f240
push dword [ebp - 0x2098]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005f6f0
xor ebx, ebx
jmp 0x100603c6
lea ecx, [ebp - 0x2091]
call fcn.100480d0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005f7f3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005f739
call fcn.100599f0
jmp 0x1005f73e
call fcn.1004dc40
push eax
push dword [ebp - 0x2098]
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 0x1005f760
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10056cc0
mov edx, eax
test edx, edx
jne 0x1005f791
xor ecx, ecx
jmp 0x1005f7a5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f796
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004b5c0
mov edx, eax
test edx, edx
jne 0x1005f7d0
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000f1b0
jmp 0x100602f3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f7d5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000f1b0
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1005c310
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005f8a9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005f83c
call fcn.1005b7b0
jmp 0x1005f841
call fcn.10057ba0
push eax
push dword [ebp - 0x2098]
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 0x1005f861
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004b940
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10057d60
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1004dee0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
jne 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1005b5f0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005f97c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005f90f
call fcn.1005a390
jmp 0x1005f914
call fcn.1004bbe0
push eax
push dword [ebp - 0x2098]
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 0x1005f934
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004bcc0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10050200
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10047e30
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
jne 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10052260
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fa4f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005f9e2
call fcn.10053ca0
jmp 0x1005f9e7
call fcn.1005b350
push eax
push dword [ebp - 0x2098]
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 0x1005fa07
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10054100
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10053bc0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10048fb0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fb08
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fa98
call fcn.10056a20
jmp 0x1005fa9d
call fcn.1005c4d0
push eax
push dword [ebp - 0x2098]
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 0x1005fac0
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10056780
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10052f80
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1005a550
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fbbe
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fb51
call fcn.1004cac0
jmp 0x1005fb56
call fcn.1005bcf0
push eax
push dword [ebp - 0x2098]
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 0x1005fb76
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004edc0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10050660
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10050120
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fc78
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fc07
call fcn.10057e40
jmp 0x1005fc0c
call fcn.10049e20
push eax
push dword [ebp - 0x2098]
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 0x1005fc30
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004c9e0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10050ac0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10048610
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fd2e
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fcc1
call fcn.1005c770
jmp 0x1005fcc6
call fcn.1004a520
push eax
push dword [ebp - 0x2098]
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 0x1005fce6
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004de00
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.100478f0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1004fcc0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fde8
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fd77
call fcn.10047c70
jmp 0x1005fd7c
call fcn.1004f780
push eax
push dword [ebp - 0x2098]
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 0x1005fda0
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10049800
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.1004d0e0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10051e00
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005fe9e
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fe31
call fcn.1005a470
jmp 0x1005fe36
call fcn.1004ad00
push eax
push dword [ebp - 0x2098]
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 0x1005fe56
sub edx, esi
lea eax, [ebp - 0x1460]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004c2e0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.1004f860
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1005aef0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1005ff58
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005fee7
call fcn.10048df0
jmp 0x1005feec
call fcn.10048d10
push eax
push dword [ebp - 0x2098]
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 0x1005ff10
sub edx, esi
lea eax, [ebp - 0x1668]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.1004b2b0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10053f40
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.100581c0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1006000e
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x1005ffa1
call fcn.1005c230
jmp 0x1005ffa6
call fcn.100487d0
push eax
push dword [ebp - 0x2098]
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 0x1005ffc6
sub edx, esi
lea eax, [ebp - 0x1870]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.100574a0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.10047810
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1004a280
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x100600c8
push 0x208
lea eax, [ebp - 0x1a78]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x10060057
call fcn.100556e0
jmp 0x1006005c
call fcn.10048c30
push eax
push dword [ebp - 0x2098]
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 0x10060080
sub edx, esi
lea eax, [ebp - 0x1a78]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.100479d0
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.1004b860
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.1004fbe0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x1006017e
push 0x208
lea eax, [ebp - 0x1c80]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x10060111
call fcn.10050ba0
jmp 0x10060116
call fcn.1004dfc0
push eax
push dword [ebp - 0x2098]
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 0x10060136
sub edx, esi
lea eax, [ebp - 0x1c80]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10049c60
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.100510e0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.10048290
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x10060238
push 0x208
lea eax, [ebp - 0x1e88]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x100601c7
call fcn.10058b10
jmp 0x100601cc
call fcn.1004c900
push eax
push dword [ebp - 0x2098]
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 0x100601f0
sub edx, esi
lea eax, [ebp - 0x1e88]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10049640
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.1005b0b0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
lea ecx, [ebp - 0x2091]
call fcn.100512a0
push eax
push esi
call fcn.10015260
add esp, 8
test al, al
je 0x100602eb
push 0x208
lea eax, [ebp - 0x2090]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
call fcn.10060420
lea ecx, [ebp - 0x2091]
test eax, eax
je 0x10060281
call fcn.1004bda0
jmp 0x10060286
call fcn.100525e0
push eax
push dword [ebp - 0x2098]
lea eax, [ebp - 0x2090]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x2090]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100602a6
sub edx, esi
lea eax, [ebp - 0x2090]
sar edx, 1
push edx
push eax
call fcn.1000f1b0
lea ecx, [ebp - 0x2091]
call fcn.10049f00
push eax
mov ecx, edi
call fcn.10015210
lea ecx, [ebp - 0x2091]
call fcn.100488b0
push eax
lea ecx, [edi + 8]
call fcn.10015210
jmp 0x100602f3
xor eax, eax
mov dword [ebp - 0x20a8], eax
mov dword [edi + 0xc], 0
cmp dword [0x100fd0f8], 0
je 0x100603a7
push str.ntdll.dll
mov dword [ebp - 0x20a0], 0
xor ebx, ebx
mov dword [ebp - 0x20a4], 0
mov dword [ebp - 0x209c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1006039d
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10060371
lea ecx, [ebp - 0x209c]
push ecx
lea ecx, [ebp - 0x20a4]
push ecx
lea ecx, [ebp - 0x20a0]
push ecx
call eax
movzx eax, word [ebp - 0x209c]
mov ebx, 1
mov dword [ebp - 0x209c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x1006039d
cmp dword [ebp - 0x20a0], 5
jne 0x1006039d
mov eax, dword [0x101271dc]
mov ecx, 1
cmp dword [ebp - 0x20a4], ecx
cmove eax, ecx
mov dword [0x101271dc], eax
mov dword [0x100fd0f8], 0
cmp dword [0x101271dc], 0
je 0x100603c0
call fcn.10060880
test eax, eax
je 0x100603c0
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x20a8]
mov eax, dword [ebp - 0x2098]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100603eb
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.10090156
mov esp, ebp
pop ebp
ret 0xc