Function at 0x42d850
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b5a9
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x6db3f0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
neg eax
jne 0x42d8a1
xor eax, eax
jmp 0x42dbb3
mov dword [ebp - 0x134], 0
push 0x110
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00542b10
add esp, 0xc
mov dword [ebp - 0x134], 0x114
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x130], 6
jne 0x42d8f3
cmp dword [ebp - 0x12c], 1
je 0x42d8fa
cmp dword [ebp - 0x12c], 2
je 0x42d8fa
xor eax, eax
jmp 0x42dbb3
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.ExtTools.dat
push 0x6dd640
lea edx, [ebp - 0x15c]
push edx
call fcn.0042e100
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx]
mov dword [ebp - 0x170], edx
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call fcn.0042e1e0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.00425a30
cmp dword [ebp - 0x14], 0
jne 0x42d9ab
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x42d9a0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00544cf0
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x160]
jmp 0x42dbb3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14c], ecx
push 0x16e000
mov ecx, dword [ebp - 0x14c]
call fcn.0042e3b0
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x148]
call fcn.00428b20
mov byte [ebp - 4], 2
push 0xa11c0
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp - 0x148]
call fcn.00428fc0
push 0x4c6d5658
lea ecx, [ebp - 0x148]
call fcn.00428cb0
call fcn.0052b4c0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00512880
mov byte [ebp - 4], 3
push 0x696bf0
push 0x696bd4
lea eax, [ebp - 0x13c]
push eax
call fcn.00402b00
add esp, 0xc
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call fcn.0042e320
add esp, 0xc
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42dad4
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c]
call fcn.00425a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00428b50
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x42dac9
mov edx, dword [ebp - 0x18]
push edx
call fcn.00544cf0
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x164]
jmp 0x42dbb3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c]
call fcn.00425a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00428b50
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x158]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x158]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c8], ecx
mov edx, dword [ebp - 0x1c8]
mov eax, 0x10005d58
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.0042e3b0
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov byte [edx], 0xc2
mov eax, dword [ebp - 0x150]
mov byte [eax + 1], 0xc
mov ecx, dword [ebp - 0x150]
mov byte [ecx + 2], 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042f330
add esp, 0x10
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x42dbad
mov eax, dword [ebp - 0x18]
push eax
call fcn.00544cf0
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00541930
mov esp, ebp
pop ebp
ret