Function at 0x403890
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a3728
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
xor edi, edi
mov ebx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
lea esi, [edi + 3]
cmp eax, 1
jne 0x403905
mov esi, eax
jmp 0x40390d
cmp eax, 2
jne 0x40390d
lea esi, [eax + 2]
lea edx, [esp + 0x14]
push edx
push 0x4b64a8
push 0x17
push edi
push 0x4a977c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x403932
mov dword [esp + 0x18], eax
jmp 0x403b51
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push esi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push 0xc
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push esi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push str.CreateIso
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push 0xc
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp ebx, edi
jne 0x4039d0
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xa0], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x64]
push edi
push esi
push eax
call edx
push esi
mov ebx, eax
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebx, edi
jge 0x4039eb
mov dword [esp + 0x18], ebx
jmp 0x403b51
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, edi
jne 0x40399a
push 0x8007000e
call fcn.004010b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x9c]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x3200000
push eax
call edx
cmp eax, edi
jge 0x403a1d
mov dword [esp + 0x18], eax
jmp 0x403b51
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jge 0x403a3b
mov dword [esp + 0x18], eax
jmp 0x403b51
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
push 0x80
push 0x4000032
push ebp
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
cmp eax, edi
jl 0x403929
cmp dword [esp + 0x1c], edi
je 0x403929
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
xor ecx, ecx
mov ebx, eax
or eax, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov esi, 0x10000
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
je 0x403b4f
cmp edi, ebp
jb 0x403ac4
ja 0x403ac0
cmp esi, ebx
jbe 0x403ac4
mov esi, ebx
mov edi, ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x24]
push edi
push esi
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x403b4b
sub ebx, esi
sbb ebp, edi
add dword [esp + 0x2c], esi
mov ecx, fcn.0041c7d0
adc dword [esp + 0x30], edi
test ecx, ecx
je 0x403b31
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push 0x64
push edx
push eax
call fcn.004555c0
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.0045d8b0
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.0041c7d0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403b4f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push 0
push eax
call edx
mov eax, ebx
or eax, ebp
jne 0x403ab6
jmp 0x403b4f
mov dword [esp + 0x18], eax
xor edi, edi
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x403b65
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x403b79
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x403b8d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x403ba1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x403bb1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044e200
add esp, 0x90
ret 8