Function at 0x4183d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d42d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x60], edi
call fcn.0041a480
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], ecx
cmp eax, 0xc
jb 0x41884c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, 7
mov dword [ebp - 0x40], 0
cmovae eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x40]
mov dword [ebp - 0x60], eax
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x5c], eax
cmp eax, esi
jbe 0x418494
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x418473
mov esi, 0x7ffffffe
jmp 0x41847d
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401c70
mov ecx, dword [ebp - 0x64]
mov ebx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x4aacdc]
xor ecx, ecx
mov dword [esi + ebx], eax
add esp, 0xc
mov eax, dword [0x4aace0]
mov dword [esi + ebx + 4], eax
mov eax, dword [0x4aace4]
mov dword [esi + ebx + 8], eax
mov eax, dword [0x4aace8]
mov dword [esi + ebx + 0xc], eax
mov eax, dword [0x4aacec]
mov dword [esi + ebx + 0x10], eax
mov eax, dword [0x4aacf0]
mov dword [esi + ebx + 0x14], eax
mov eax, dword [ebp - 0x5c]
mov word [ebx + eax*2], cx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x2c]
test eax, eax
setne bl
cmp edx, 8
jb 0x41853b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418531
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418531
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
test bl, bl
je 0x41857b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x14], ecx
jmp 0x418716
lea eax, [ebp - 0x58]
push 0x80000001
push eax
call fcn.004192f0
push str.office6
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00401590
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x418630
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4185e6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4185dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186a9
push edx
push ecx
call fcn.004991fe
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x418666
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41865c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186a9
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x4186b9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4186af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4186af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x418736
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00401900
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x418716
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41870c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418846
push edx
push ecx
call fcn.004991fe
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049920c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x58]
push 0x80000002
push eax
call fcn.004192f0
push str.office6
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00401590
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.004023b0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x418799
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41878f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4187d9
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4187e9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4187df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4187df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x4186d1
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 8
jb 0x418716
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41870c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41870c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401c50
int3