Function at 0x1002dc60
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
cmp dword [0x1017bd5c], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov byte [ebp - 1], 0
je 0x1002dd47
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x1013e228
call edi
push eax
call esi
test eax, eax
je 0x1002dd3d
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
movaps xmmword [ebp - 0x50], xmm0
push ecx
movaps xmmword [ebp - 0x40], xmm0
call eax
mov ax, word [ebp - 0x50]
cmp ax, 9
je 0x1002dd33
cmp ax, 6
je 0x1002dd33
cmp ax, 0xc
je 0x1002dd33
push str.IsWow64Process2
push 0x1013f8f0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
call edi
push eax
call esi
mov esi, eax
test esi, esi
je 0x1002dd2a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1002dd2a
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0xc], cx
sete al
mov dword [0x10182650], eax
jmp 0x1002dd3d
xor eax, eax
mov dword [0x10182650], eax
jmp 0x1002dd3d
mov dword [0x10182650], 1
mov dword [0x1017bd5c], 0
cmp dword [0x10182650], 0
je 0x1002e002
cmp dword [0x1017c1a4], 0
mov edi, 1
je 0x1002dde8
push str.ntdll.dll
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1002ddde
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002ddbb
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call eax
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 8], 0
je 0x1002ddde
cmp dword [ebp - 0x10], 6
jne 0x1002ddde
mov eax, dword [0x10182784]
cmp dword [ebp - 0x14], edi
cmove eax, edi
mov dword [0x10182784], eax
mov dword [0x1017c1a4], 0
cmp dword [0x10182784], 0
jne 0x1002e002
lea eax, [ebp - 8]
push eax
call fcn.10012f20
mov eax, dword [ebp - 8]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x1002de4a
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002de22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10012140
test al, al
jne 0x1002e002
call fcn.100122f0
test al, al
je 0x1002e002
call fcn.10029cb0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
add eax, 0xfffffff0
push eax
call fcn.10004430
add esp, 4
add eax, 0x10
mov dword [ebp - 0xc], eax
call fcn.1003f260
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
call fcn.1003f260
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1002de91
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1002dea9
call fcn.10013020
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1002e00e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edx, [eax + 0x10]
mov dword [esi], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x18], eax
lea esi, [eax + 0x16]
test esi, esi
js 0x1002e018
mov eax, dword [edx - 8]
mov ecx, edi
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x1002deed
push esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.100052b0
mov edx, dword [esi]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
lea esi, [eax + eax]
push esi
push dword [ebp - 0x1c]
push esi
push edx
call fcn.1002e240
mov eax, dword [ebp - 0x14]
add esp, 0x10
add eax, esi
jne 0x1002df1a
call fcn.100ebae7
mov dword [eax], 0x16
call fcn.100eb9c0
jmp 0x1002df2a
push 0x2c
push 0x10140494
push eax
call fcn.100ce960
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, 0x16
mov edx, dword [eax]
cmp ecx, dword [edx - 8]
jg 0x1002e018
mov dword [edx - 0xc], ecx
xor edx, edx
mov eax, dword [eax]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov edx, dword [ebp - 0xc]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002df6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x104
or edi, ecx
jge 0x1002df91
push 0x104
lea ecx, [ebp - 8]
call fcn.100052b0
mov eax, dword [ebp - 8]
push str.LdsSecurity.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 8]
push dword [eax - 8]
push eax
call fcn.100ec86a
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1002e018
mov eax, dword [ebp - 8]
cmp ecx, dword [eax - 8]
jg 0x1002e018
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax + ecx*2], dx
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 8]
setne byte [ebp - 2]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1002dfed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 2], 0
je 0x1002de22
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.100042d0
push 0x80070057
call fcn.100042d0
int3