Function at 0x4028a0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
sub esp, 0x54
mov eax, dword [0x42f140]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push esi
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0x42843719
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0x46c2db4c
push eax
push 1
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0xf1647c8e
push eax
mov dword [esp + 0x54], 0x5bfd6e81
mov dword [esp + 0x58], 0x177f0c4a
mov dword [esp + 0x5c], 0x4de71cd3
mov dword [esp + 0x60], 0xdb712ca3
mov dword [esp + 0x64], 0x6da39fbb
mov dword [esp + 0x30], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402cd6
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
call ecx
test esi, esi
jne 0x402cd6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402cd6
lea edx, [esp + 0x20]
mov dword [esp + 0x20], esi
push edx
mov dword [esp + 0xc], esi
lea edx, [esp + 0xc]
mov eax, dword [ecx]
push edx
push 1
push ecx
mov eax, dword [eax + 0xc]
mov byte [esp + 0x17], 0
call eax
test eax, eax
jne 0x402cb6
push ebx
push ebp
push edi
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
call ecx
test esi, esi
jne 0x402bed
mov edi, dword [esp + 0x1c]
mov ebp, edi
lea ecx, [ebp + 2]
mov ax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4029c0
sub ebp, ecx
sar ebp, 1
lea esi, [ebp*2]
lea eax, [esi + 0x72]
push eax
call fcn.0040ab6a
push esi
mov ebx, eax
push edi
push ebx
call fcn.00408510
add esp, 0x10
lea edi, [esi + ebx]
mov ecx, 0x1c
mov esi, str.VCAuxiliaryBuildMicrosoft.VCToolsVersion.default.txt
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebx + ebp*2 + 0x70], ax
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x425964
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0040bf01
push ebx
mov esi, eax
call fcn.0040ab4f
add esp, 0x10
test esi, esi
jne 0x402bed
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402bed
push eax
call fcn.0040c7c2
push eax
call fcn.00412901
add esp, 8
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x402a69
push dword [esp + 0x18]
call fcn.0040c792
jmp 0x402bea
mov eax, dword [esp + 0x38]
lea esi, [eax*2 + 2]
push esi
call fcn.0040ab6a
push dword [esp + 0x1c]
mov ebp, eax
push esi
push ebp
call fcn.0040bd89
push dword [esp + 0x28]
mov esi, eax
call fcn.0040c792
add esp, 0x14
test esi, esi
je 0x402bed
push 0xa
push ebp
call fcn.00408461
add esp, 8
test eax, eax
je 0x402ab1
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x30], eax
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402ac0
sub ebx, ecx
xor esi, esi
sar ebx, 1
test ebp, ebp
je 0x402aef
mov esi, ebp
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402ae0
sub esi, ecx
sar esi, 1
lea eax, [esi + ebx]
lea eax, [eax*2 + 0x30]
push eax
call fcn.0040ab6a
lea edi, [ebx + ebx]
mov dword [esp + 0x24], eax
push edi
push dword [esp + 0x38]
push eax
call fcn.00408510
movups xmm0, xmmword [str.VCToolsMSVC_]
mov ecx, dword [esp + 0x30]
add esp, 0x10
movups xmmword [edi + ecx], xmm0
movq xmm0, qword [0x425990]
movq qword [edi + ecx + 0x10], xmm0
mov eax, dword [0x425998]
mov dword [edi + ecx + 0x18], eax
mov ax, word [0x42599c]
mov word [edi + ecx + 0x1c], ax
test ebp, ebp
je 0x402b61
lea eax, [esi + esi]
push eax
lea eax, [ecx + 0x1e]
lea eax, [eax + ebx*2]
push ebp
push eax
call fcn.00408510
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movups xmm0, xmmword [str.libx64]
lea eax, [esi + ebx]
xor edx, edx
movups xmmword [ecx + eax*2 + 0x1e], xmm0
lea eax, [esi + ebx]
mov ebx, ecx
mov word [ecx + eax*2 + 0x2e], dx
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402b80
sub ebx, ecx
sar ebx, 1
lea esi, [ebx + ebx]
lea eax, [esi + 0x1e]
push eax
call fcn.0040ab6a
push esi
push dword [esp + 0x28]
mov edi, eax
push edi
call fcn.00408510
movups xmm0, xmmword [str._vcruntime.lib]
add esp, 0x10
movups xmmword [esi + edi], xmm0
movq xmm0, qword [0x4259b0]
movq qword [esi + edi + 0x10], xmm0
mov eax, dword [0x4259b8]
mov dword [esi + edi + 0x18], eax
xor eax, eax
push edi
mov word [edi + ebx*2 + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402be4
test al, 0x10
je 0x402c22
push ebp
call fcn.0040ab4f
add esp, 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x402990
jmp 0x402cb3
push ebp
call fcn.0040ab4f
mov ebp, dword [esp + 0x20]
add esp, 4
mov ebx, ebp
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402c34
sub ebx, ecx
sar ebx, 1
lea eax, [ebx*2 + 0x44]
push eax
call fcn.0040ab6a
lea esi, [ebx + ebx]
mov edi, eax
push esi
push ebp
push edi
call fcn.00408510
movups xmm0, xmmword [str.VCAuxiliaryBuild_vcvarsall.bat]
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov byte [esp + 0x13], 1
movups xmmword [esi + edi], xmm0
movups xmm0, xmmword [0x4259d0]
movups xmmword [esi + edi + 0x10], xmm0
movups xmm0, xmmword [0x4259e0]
movups xmmword [esi + edi + 0x20], xmm0
movups xmm0, xmmword [0x4259f0]
movups xmmword [esi + edi + 0x30], xmm0
mov ax, word [0x425a00]
mov word [esi + edi + 0x40], ax
xor eax, eax
mov word [edi + ebx*2 + 0x42], ax
mov eax, dword [esp + 0x20]
mov dword [ecx], edi
mov dword [ecx + 4], eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
call ecx
mov al, byte [esp + 7]
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004076d6
add esp, 0x54
ret
mov ecx, dword [esp + 0x54]
xor al, al
pop esi
xor ecx, esp
call fcn.004076d6
add esp, 0x54
ret