Function at 0x4183b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675504
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x71506c]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x188]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x184], eax
call fcn.004e0d30
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x10
push eax
call fcn.004d1d4f
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jbe 0x41842c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x418479
push 0x104
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.00508390
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x15c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418460
sub ecx, edx
lea eax, [ebp - 0x15c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004063f0
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x418493
cmp dword [ebp - 0x14], 0x10
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004063f0
push ebx
call fcn.004d01dd
add esp, 4
test eax, eax
jne 0x4184f4
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4184d7
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4184be
mov eax, dword [ebx]
push 1
lea esi, [eax + ecx]
push 0x6fc798
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x4184f4
push 1
push 0x6fc798
mov byte [ebp - 0x180], 0
mov ecx, ebx
push dword [ebp - 0x180]
push 1
call fcn.00407030
cmp dword [ebx + 0x60], 0x10
lea eax, [ebx + 0x4c]
jb 0x4184ff
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
mov ecx, ebx
call fcn.00405d20
call fcn.004d5ab1
test al, al
je 0x4185b6
mov eax, dword [0x725d28]
test eax, eax
je 0x4185b6
cmp dword [eax + 4], 5
jl 0x4185b6
cmp dword [ebx + 0x14], 0x10
mov esi, ebx
jb 0x41853c
mov esi, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x178]
push 0x275
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e3c0
mov dword [ebp - 0x180], eax
lea edi, [eax + 0x30]
mov byte [ebp - 4], 2
mov edx, str.target_file:
mov ecx, edi
call fcn.0040e230
mov edx, esi
mov ecx, edi
call fcn.0040e230
mov edx, 0x6fc750
mov ecx, edi
call fcn.0040e230
cmp dword [ebx + 0x78], 0x10
lea edx, [ebx + 0x64]
jb 0x41858f
mov edx, dword [edx]
mov ecx, edi
call fcn.0040e230
push dword [ebp - 0x180]
mov ecx, dword [0x725d28]
call fcn.00410b00
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.0040e7c0
push 0
push dword [ebp - 0x184]
push 0x415130
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00405f50
lea eax, [ebp - 0x58]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4185eb
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x64]
mov ecx, esp
push eax
call fcn.00405f50
lea eax, [ebp - 0x40]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x418617
mov eax, dword [eax]
push eax
call fcn.004e1370
mov byte [ebp - 4], 3
add esp, 0x14
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x179], al
cmp edx, 8
jb 0x418664
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41865a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418810
push edx
push ecx
call fcn.00430080
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4186b6
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4186ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418815
push edx
push ecx
call fcn.00430080
add esp, 8
call fcn.004d5ab1
cmp byte [ebp - 0x179], 0
je 0x418729
test al, al
je 0x41879f
mov eax, dword [0x725d28]
test eax, eax
je 0x41879f
cmp dword [eax + 4], 5
jl 0x41879f
cmp dword [ebx + 0x14], 0x10
jb 0x4186eb
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x178]
push 0x27d
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e3c0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 5
lea ecx, [edi + 0x30]
call fcn.0040e230
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040e230
mov edx, str.__ok
jmp 0x418780
test al, al
je 0x41879f
mov eax, dword [0x725d28]
test eax, eax
je 0x41879f
cmp dword [eax + 4], 5
jl 0x41879f
cmp dword [ebx + 0x14], 0x10
jb 0x418744
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x178]
push 0x281
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e3c0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 6
lea ecx, [edi + 0x30]
call fcn.0040e230
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040e230
mov edx, str.__fail
lea ecx, [edi + 0x30]
call fcn.0040e230
mov ecx, dword [0x725d28]
push edi
call fcn.00410b00
lea ecx, [ebp - 0x178]
call fcn.0040e7c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4187cf
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4187c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41881a
push edx
push ecx
call fcn.00430080
add esp, 8
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004e0e70
mov al, byte [ebp - 0x179]
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.0042fa05
mov esp, ebp
pop ebp
ret 8
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
int3