Function at 0x403c50
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c3c
call fcn.00414550
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0xc24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x1024]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x1c34], 0
lea ebx, [ebp - 0x424]
mov byte [ebp - 0x1c25], 1
add esp, 0x18
mov ecx, esi
movups xmmword [ebp - 0x24], xmm0
sub ebx, esi
movups xmmword [ebp - 0x14], xmm0
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x403cc0
push str.setupex.exe
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403e72
lea eax, [ebp - 0x1c34]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x403f20
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x1c2c], eax
test eax, eax
je 0x403f20
push eax
push edi
push dword [ebp - 0x1c34]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x403e63
lea eax, [ebp - 0x1c38]
push eax
push 0x420518
push str.VarFileInfoTranslation
push dword [ebp - 0x1c2c]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
xor edi, edi
test dword [ebp - 0x1c38], 0xfffffffc
jbe 0x403e63
nop word [eax + eax]
mov eax, dword [0x420518]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x1424]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1c3c]
push eax
lea eax, [ebp - 0x1c30]
push eax
lea eax, [ebp - 0x1424]
push eax
push dword [ebp - 0x1c2c]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x403dde
mov eax, dword [ebp - 0x1c38]
inc edi
shr eax, 2
cmp edi, eax
jb 0x403d80
jmp 0x403e63
mov ecx, dword [ebp - 0x1c30]
lea edx, [ebp - 0xc24]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403df0
mov eax, dword [0x420518]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x1424]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1c3c]
push eax
lea eax, [ebp - 0x1c30]
push eax
lea eax, [ebp - 0x1424]
push eax
push dword [ebp - 0x1c2c]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x403e63
mov ecx, dword [ebp - 0x1c30]
lea edx, [ebp - 0x1024]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403e56
push dword [ebp - 0x1c2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0xc24]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e80
sub ecx, edx
je 0x403f20
lea ecx, [ebp - 0x1024]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e98
sub ecx, edx
je 0x403f20
cmp byte [0x420d21], 0
lea eax, [ebp - 0xc24]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
je 0x403ed6
push str.7.102
push eax
call esi
add esp, 8
test eax, eax
jne 0x4041ba
lea eax, [ebp - 0x1024]
jmp 0x40415a
push str.1__1__0__4
push eax
call esi
add esp, 8
test eax, eax
jne 0x4041ba
lea eax, [ebp - 0x1024]
push 0x418e28
push eax
call esi
mov cl, byte [ebp - 0x1c25]
add esp, 8
neg eax
sbb al, al
pop edi
and cl, al
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ebx + esi - 1], al
test al, al
jne 0x403f20
push str.gmcl.ckn
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403f63
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x424]
push 0x418e38
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40410c
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [ebp - 0x1c24]
push edi
push 0x400
push eax
call esi
add esp, 0xc
test eax, eax
je 0x404102
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
nop dword [eax + eax]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1c24]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1825], al
test al, al
jne 0x403fb2
lea eax, [ebp - 0x1824]
push eax
call ebx
lea eax, [ebp - 0x1824]
push str.ck_version:
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0xc
mov dword [ebp - 0x1c30], eax
test eax, eax
jne 0x40400a
push edi
lea eax, [ebp - 0x1c24]
push 0x400
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x403fb0
jmp 0x404102
add eax, 0xc
push 0x20
push eax
mov dword [ebp - 0x1c30], eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x40405e
mov edx, dword [ebp - 0x1c30]
lea eax, [ebp - 0x824]
mov ecx, esi
sub ecx, edx
push ecx
push edx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, esi
add esp, 0xc
sub eax, dword [ebp - 0x1c30]
cmp eax, 0x400
jae 0x4041d3
mov byte [ebp + eax - 0x824], 0
jmp 0x404070
xor ecx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x825], al
test al, al
jne 0x404060
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea eax, [ebp - 0x824]
push 0x418e4c
push eax
call ebx
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x824]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x25], al
test al, al
jne 0x404090
test esi, esi
je 0x404102
push 6
inc esi
push str.build
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x404102
lea ecx, [esi + 6]
lea edx, [ebp - 0x824]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4040c7
push 0x418e4c
lea eax, [ebp - 0x824]
push eax
call ebx
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x824]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x15], al
test al, al
jne 0x4040f0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404112
sub ecx, edx
je 0x4041ba
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404127
sub ecx, edx
je 0x4041ba
cmp byte [0x420d21], 0
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
je 0x40417e
push str.7102
push eax
call esi
add esp, 8
test eax, eax
jne 0x4041ba
lea eax, [ebp - 0x24]
push 0x418e18
push eax
call esi
add esp, 8
test eax, eax
jne 0x4041ba
pop edi
xor cl, cl
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push str.7303
push eax
call esi
add esp, 8
test eax, eax
jne 0x4041ba
lea eax, [ebp - 0x24]
push 0x418e28
push eax
call esi
mov cl, byte [ebp - 0x1c25]
add esp, 8
neg eax
sbb al, al
pop edi
and cl, al
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0x1c25]
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412814
mov esp, ebp
pop ebp
ret
call fcn.0041294b
int3