Function at 0x40cb30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458e6e
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x47c084]
xor eax, esp
mov dword [esp + 0xa78], eax
push ebx
push esi
push edi
mov eax, dword [0x47c084]
xor eax, esp
push eax
lea eax, [esp + 0xa90]
mov dword fs:[0], eax
mov esi, 0x114
push esi
xor ebx, ebx
push ebx
mov edi, 0x47f5c0
push edi
call fcn.00413ad0
add esp, 0xc
mov dword [0x47f5c0], esi
call fcn.0043f31e
push edi
call dword [eax + 0x64]
mov dword [0x47f6d8], ebx
mov dword [0x47f6d4], ebx
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x14], 6
push 0x53
pop esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], 0x24
mov dword [esp + 0x18], 0x22
push 0x58
pop edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x40cc23
mov eax, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx - 0x36]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 0x29
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xa98], ebx
mov dword [esp + 0x24], 0x5a
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x18], 0x51
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
shl eax, 4
sub ecx, eax
mov eax, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
add ecx, dword [esp + 0x18]
push 0x14
add ecx, dword [esp + 0x28]
lea ebx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
imul eax, eax, 7
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
imul eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
pop ecx
sub ecx, eax
add ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
imul eax, eax, 0x59
imul ecx, edx
add eax, ecx
add eax, dword [esp + 0x18]
push dword [0x47d8bc]
mov dword [esp + 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x20019
call fcn.004056a3
xor ebx, ebx
test eax, eax
jne 0x40cebb
push 0x7fe
mov word [esp + 0x288], ax
lea eax, [esp + 0x28a]
push ebx
push eax
call fcn.00413ad0
mov dword [esp + 0x20], 8
add dword [esp + 0x20], 0x1a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax - 0x61]
add eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
imul eax, ecx
push 0xffffffffffffffe1
pop ecx
sub ecx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
imul eax, edx
mov edx, dword [esp + 0x14]
imul eax, edx
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
add ecx, dword [esp + 0x14]
push 0x5b
add ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
imul eax, ecx
pop ecx
sub ecx, eax
add ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
add dword [esp + 0x14], 0x3d
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x24], 6
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x22
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jge 0x40ce10
mov eax, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx - 0x36]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 0x29
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push dword [0x47d8c0]
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x48]
lea edi, [esp + 0x28c]
call fcn.0040ba2a
test eax, eax
jne 0x40cebb
mov eax, edi
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
call fcn.00405b7c
push 0xfde9
lea ecx, [esp + 0x48]
lea edx, [esp + 0x64]
mov byte [esp + 0xa9c], 1
call fcn.0044c516
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x40ce6a
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push dword [0x47d270]
push eax
call fcn.004148d4
add esp, 0x10
cmp eax, 2
sete byte [esp + 0x2b]
push 1
xor edi, edi
lea esi, [esp + 0x64]
call fcn.00405711
push 1
lea esi, [esp + 0x48]
call fcn.00405a55
cmp byte [esp + 0x2b], bl
je 0x40cebb
mov eax, dword [esp + 0x3c]
mov dword [0x47f6d4], eax
mov eax, dword [esp + 0x2c]
mov dword [0x47f6d8], eax
cmp dword [esp + 0x30], ebx
je 0x40cecf
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
xor eax, eax
push 0x206
mov word [esp + 0x80], ax
lea eax, [esp + 0x82]
push ebx
push eax
mov dword [esp + 0x40], ebx
call fcn.00413ad0
fld qword [0x476940]
fstp qword [esp + 0x28]
add esp, 0xc
fld qword [esp + 0x1c]
lea eax, [esp + 0x7c]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x476938]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fadd qword [0x4768a0]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x476930]
fmul qword [esp + 0x1c]
fld qword [esp + 0x1c]
fadd qword [0x476928]
faddp st(1)
fadd qword [0x4768e0]
fsub qword [esp + 0x1c]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fld qword [esp + 0x1c]
fsub qword [0x476920]
faddp st(1)
fadd qword [0x476918]
fadd qword [esp + 0x1c]
fsub qword [0x476910]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x1c]
fsub qword [esp + 0x1c]
fsub qword [esp + 0x1c]
push dword [0x47d8c4]
push eax
fstp qword [esp + 0x24]
call fcn.004141d2
pop ecx
pop ecx
push 0x104
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
fld qword [0x476940]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x476938]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fadd qword [0x4768a0]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x476930]
fmul qword [esp + 0x1c]
fld qword [esp + 0x1c]
fadd qword [0x476928]
faddp st(1)
fadd qword [0x4768e0]
fsub qword [esp + 0x1c]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fld qword [esp + 0x1c]
fsub qword [0x476920]
faddp st(1)
lea eax, [esp + 0x7c]
push eax
fadd qword [0x476918]
fadd qword [esp + 0x20]
fsub qword [0x476910]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fmul qword [esp + 0x20]
fadd qword [esp + 0x20]
fsub qword [esp + 0x20]
fsub qword [esp + 0x20]
fstp qword [esp + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [0x47f6dc], eax
mov eax, 0x47f5c0
mov ecx, dword [esp + 0xa90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.00411a01
mov esp, ebp
pop ebp
ret