Function at 0x10043150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a636b
mov eax, dword fs:[0]
push eax
mov eax, 0x1264
call fcn.10066a80
mov eax, dword [0x100ca1c4]
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 - 0x1260]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1270], 1
call fcn.10042ed0
push dword [ebp - 0x1260]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100431c0
xor ebx, ebx
jmp 0x10043990
lea ecx, [ebp - 0x1259]
call fcn.10035010
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x100432c3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x10043209
call fcn.1003f8b0
jmp 0x1004320e
call fcn.10038420
push eax
push dword [ebp - 0x1260]
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 0x10043230
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.1003dc20
mov edx, eax
test edx, edx
jne 0x10043261
xor ecx, ecx
jmp 0x10043275
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043266
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.10036e40
mov edx, eax
test edx, edx
jne 0x100432a0
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000c7d0
jmp 0x100438bd
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100432a5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000c7d0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10040f70
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x10043379
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x1004330c
call fcn.10040950
jmp 0x10043311
call fcn.1003e5c0
push eax
push dword [ebp - 0x1260]
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 0x10043331
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.10037000
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.1003e6a0
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.100385e0
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
jne 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10040870
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x1004344c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x100433df
call fcn.1003fdf0
jmp 0x100433e4
call fcn.100371c0
push eax
push dword [ebp - 0x1260]
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 0x10043404
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.100372a0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.10039e80
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10034e50
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
jne 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.1003aea0
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x1004351f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x100434b2
call fcn.1003c100
jmp 0x100434b7
call fcn.100405d0
push eax
push dword [ebp - 0x1260]
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 0x100434d7
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.1003c3a0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.1003c020
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10035710
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x100435d8
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x10043568
call fcn.1003da60
jmp 0x1004356d
call fcn.10041050
push eax
push dword [ebp - 0x1260]
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 0x10043590
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.1003d7c0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.1003b760
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.1003fed0
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x1004368e
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x10043621
call fcn.100379a0
jmp 0x10043626
call fcn.10040cd0
push eax
push dword [ebp - 0x1260]
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 0x10043646
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.10038ea0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.1003a040
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10039da0
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x10043748
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x100436d7
call fcn.1003e780
jmp 0x100436dc
call fcn.10035e80
push eax
push dword [ebp - 0x1260]
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 0x10043700
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.100378c0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.1003a200
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10035390
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x100437fe
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x10043791
call fcn.100412f0
jmp 0x10043796
call fcn.10036120
push eax
push dword [ebp - 0x1260]
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 0x100437b6
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.10038500
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.10034ad0
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
lea ecx, [ebp - 0x1259]
call fcn.10039940
push eax
push esi
call fcn.10011710
add esp, 8
test al, al
je 0x100438b5
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.10080e90
add esp, 0xc
call fcn.100439f0
lea ecx, [ebp - 0x1259]
test eax, eax
je 0x10043847
call fcn.10034d70
jmp 0x1004384c
call fcn.100395c0
push eax
push dword [ebp - 0x1260]
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 0x10043870
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.1000c7d0
lea ecx, [ebp - 0x1259]
call fcn.10035be0
push eax
mov ecx, edi
call fcn.100116c0
lea ecx, [ebp - 0x1259]
call fcn.10037c40
push eax
lea ecx, [edi + 8]
call fcn.100116c0
jmp 0x100438bd
xor eax, eax
mov dword [ebp - 0x1270], eax
mov dword [edi + 0xc], 0
cmp dword [0x100ca150], 0
je 0x10043971
push str.ntdll.dll
mov dword [ebp - 0x1268], 0
xor ebx, ebx
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1264], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10043967
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004393b
lea ecx, [ebp - 0x1264]
push ecx
lea ecx, [ebp - 0x126c]
push ecx
lea ecx, [ebp - 0x1268]
push ecx
call eax
movzx eax, word [ebp - 0x1264]
mov ebx, 1
mov dword [ebp - 0x1264], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10043967
cmp dword [ebp - 0x1268], 5
jne 0x10043967
mov eax, dword [0x100f36e4]
mov ecx, 1
cmp dword [ebp - 0x126c], ecx
cmove eax, ecx
mov dword [0x100f36e4], eax
mov dword [0x100ca150], 0
cmp dword [0x100f36e4], 0
je 0x1004398a
call fcn.10043e50
test eax, eax
je 0x1004398a
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x1270]
mov eax, dword [ebp - 0x1260]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100439b5
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.10066859
mov esp, ebp
pop ebp
ret 0xc