Function at 0x4172b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675424
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
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 + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp + 0x14]
push 0x104
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x2d4], ebx
call fcn.00508390
add esp, 0xc
lea ecx, [ebp - 0x2dc]
call fcn.004e0d30
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x144], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417360
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.004063f0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
call fcn.004d01dd
add esp, 4
test eax, eax
jne 0x4173f3
mov edx, dword [ebp - 0x130]
mov eax, edx
mov ecx, dword [ebp - 0x134]
sub eax, ecx
push 1
push 0x6fc798
cmp eax, 1
jb 0x4173d9
cmp edx, 0x10
lea esi, [ebp - 0x144]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x144]
add esi, ecx
mov dword [ebp - 0x134], eax
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x4173f3
mov byte [ebp - 0x2d0], 0
lea ecx, [ebp - 0x144]
push dword [ebp - 0x2d0]
push 1
call fcn.00407030
call fcn.004d5ab1
test al, al
je 0x417465
mov eax, dword [0x725d28]
test eax, eax
je 0x417465
cmp dword [eax + 4], 5
jl 0x417465
sub esp, 0xc
lea ecx, [ebp - 0x2c4]
push 0x204
push str.CDoWebInstLogic::OnInsOwerLogic
push 5
call fcn.0040e3c0
mov esi, eax
mov edx, str.ower_dlfile_mode:
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
call fcn.0040e230
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x417442
mov edx, dword [ebx]
lea ecx, [esi + 0x30]
call fcn.0040e230
mov ecx, dword [0x725d28]
push esi
call fcn.00410b00
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 1
call fcn.0040e7c0
mov eax, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x48]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2d0], edi
cmp edi, eax
je 0x41786b
nop
push edi
lea ecx, [ebp - 0x174]
call fcn.00405f50
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x12c]
call fcn.00405f50
mov byte [ebp - 4], 4
lea eax, [ebp - 0x174]
cmp dword [ebp - 0x160], 0x10
cmovae eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, eax
mov ebx, esi
mov dword [ebp - 0x2cc], esi
lea eax, [ebx + 1]
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4174d0
mov edx, dword [ebp - 0x118]
sub ebx, eax
mov ecx, dword [ebp - 0x11c]
mov eax, edx
sub eax, ecx
push ebx
cmp ebx, eax
ja 0x41751e
push dword [ebp - 0x2cc]
cmp edx, 0x10
lea esi, [ebp - 0x12c]
lea eax, [ebx + ecx]
cmovae esi, dword [ebp - 0x12c]
add esi, ecx
mov dword [ebp - 0x11c], eax
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x417538
push esi
mov byte [ebp - 0x2e0], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x2e0]
push ebx
call fcn.00407030
call fcn.004d5ab1
test al, al
je 0x4175e5
mov eax, dword [0x725d28]
test eax, eax
je 0x4175e5
cmp dword [eax + 4], 5
jl 0x4175e5
sub esp, 0xc
lea ecx, [ebp - 0x2c4]
push 0x20a
push str.CDoWebInstLogic::OnInsOwerLogic
push 5
call fcn.0040e3c0
mov dword [ebp - 0x2cc], eax
lea esi, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.dlfile_:
mov ecx, esi
call fcn.0040e230
cmp dword [ebp - 0x160], 0x10
lea edx, [ebp - 0x174]
mov ecx, esi
cmovae edx, dword [ebp - 0x174]
call fcn.0040e230
mov ebx, dword [0x725d28]
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
je 0x4175d6
mov edi, dword [ebp - 0x2cc]
nop
mov ecx, dword [esi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebx + 0xc]
jne 0x4175c0
mov edi, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 4
call fcn.0040e7c0
push 0
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x12c]
push 0x415130
push 0x3a8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00405f50
lea eax, [ebp - 0x1a4]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x417623
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x174]
mov ecx, esp
push eax
call fcn.00405f50
lea eax, [ebp - 0x18c]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x417655
mov eax, dword [eax]
push eax
call fcn.004e1370
mov byte [ebp - 4], 6
add esp, 0x14
mov edx, dword [ebp - 0x178]
mov bl, al
cmp edx, 8
jb 0x4176a4
mov ecx, dword [ebp - 0x18c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41769a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e5f
push edx
push ecx
call fcn.00430080
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
cmp edx, 8
jb 0x417705
mov ecx, dword [ebp - 0x1a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4176fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e5f
push edx
push ecx
call fcn.00430080
add esp, 8
call fcn.004d5ab1
test bl, bl
jne 0x417901
test al, al
je 0x417791
mov eax, dword [0x725d28]
test eax, eax
je 0x417791
cmp dword [eax + 4], 5
jl 0x417791
sub esp, 0xc
lea ecx, [ebp - 0x2c4]
push 0x216
push str.CDoWebInstLogic::OnInsOwerLogic
push 5
call fcn.0040e3c0
mov dword [ebp - 0x2cc], eax
lea ecx, [eax + 0x30]
mov byte [ebp - 4], 9
mov edx, str.dlfile_:_fail
call fcn.0040e230
mov ebx, dword [0x725d28]
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
je 0x417786
mov edi, dword [ebp - 0x2cc]
nop word [eax + eax]
mov ecx, dword [esi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebx + 0xc]
jne 0x417770
mov edi, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c4]
call fcn.0040e7c0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmovae eax, dword [ebp - 0x12c]
push eax
call ebx
test eax, eax
jne 0x4177d4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x417812
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417808
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e5f
push edx
push ecx
call fcn.00430080
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x417850
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417846
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e5f
push edx
push ecx
call fcn.00430080
add esp, 8
add edi, 0x18
mov dword [ebp - 0x2d0], edi
cmp edi, dword [ebp - 0x2e8]
jne 0x417480
mov ebx, dword [ebp - 0x2d4]
push 0x17
push str.dlowerpkgfailexename
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.004063f0
mov eax, dword [ebp - 0x2d8]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x417c40
cmp dword [eax + 0x48], 0x10
lea ecx, [eax + 0x34]
jb 0x4178b6
mov ecx, dword [eax + 0x34]
mov edi, dword [eax + 0x44]
mov esi, dword [ebp - 0x118]
mov eax, esi
mov edx, dword [ebp - 0x11c]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x417c30
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
lea esi, [eax + edx]
push esi
call fcn.00507e10
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x417ca0
test al, al
je 0x41796f
mov eax, dword [0x725d28]
test eax, eax
je 0x41796f
cmp dword [eax + 4], 5
jl 0x41796f
sub esp, 0xc
lea ecx, [ebp - 0x2c4]
push 0x211
push str.CDoWebInstLogic::OnInsOwerLogic
push 5
call fcn.0040e3c0
mov ebx, eax
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 8
mov edx, str.dlfile_:_ok
call fcn.0040e230
mov edi, dword [0x725d28]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x417960
nop
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x417950
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 4
call fcn.0040e7c0
mov edi, dword [ebp - 0x2d4]
lea eax, [ebp - 0x12c]
lea ecx, [edi + 0x54]
cmp ecx, eax
je 0x41799c
cmp dword [ebp - 0x118], 0x10
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004063f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x4179da
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4179d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e5f
push edx
push ecx
call fcn.00430080
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp edx, 0x10
jb 0x417a33
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417a29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e64
push edx
push ecx
call fcn.00430080
add esp, 8
push dword [ebp - 0x2c8]
push edi
call fcn.0040f900
mov bl, al
mov eax, dword [ebp - 0x2d8]
test eax, eax
je 0x417a58
cmp dword [eax + 0x48], 0x10
lea ecx, [eax + 0x34]
jb 0x417a5d
mov ecx, dword [ecx]
jmp 0x417a5d
mov ecx, str.none
push ecx
mov ecx, str.fail
test bl, bl
mov eax, 0x6fcd10
cmove eax, ecx
push eax
lea eax, [ebp - 0x15c]
push str.instowserpkg_sexename_s
push eax
call fcn.004cff1a
add esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x148]
mov eax, edx
mov ecx, dword [ebp - 0x14c]
sub eax, ecx
push 6
push 0x6fccf8
cmp eax, 6
jb 0x417acc
cmp edx, 0x10
lea esi, [ebp - 0x15c]
lea eax, [ecx + 6]
cmovae esi, dword [ebp - 0x15c]
add esi, ecx
mov dword [ebp - 0x14c], eax
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + 6], 0
jmp 0x417ae6
mov byte [ebp - 0x2c8], 0
lea ecx, [ebp - 0x15c]
push dword [ebp - 0x2c8]
push 6
call fcn.00407030
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x417af0
mov ecx, dword [edi]
mov esi, dword [ebp - 0x148]
mov eax, esi
mov edi, dword [edi + 0x10]
mov edx, dword [ebp - 0x14c]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x417b34
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x15c]
cmovae eax, dword [ebp - 0x15c]
lea esi, [eax + edx]
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x417b4d
mov byte [ebp - 0x2c8], 0
lea ecx, [ebp - 0x15c]
push dword [ebp - 0x2c8]
push edi
call fcn.00407030
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
cmovae eax, dword [ebp - 0x15c]
push eax
push str.hget
push ecx
call fcn.00418a70
mov ecx, eax
call fcn.00405800
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x417bae
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417ba4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e69
push edx
push ecx
call fcn.00430080
add esp, 8
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp edx, 0x10
jb 0x417c03
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417bf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e6e
push edx
push ecx
call fcn.00430080
add esp, 8
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.004e0e70
mov al, bl
jmp 0x417e41
mov byte [ebp - 0x2c8], 0
push dword [ebp - 0x2c8]
push edi
jmp 0x417c95
mov edx, dword [ebp - 0x118]
mov eax, edx
mov ecx, dword [ebp - 0x11c]
sub eax, ecx
push 4
push str.none
cmp eax, 4
jb 0x417c86
cmp edx, 0x10
lea esi, [ebp - 0x12c]
lea eax, [ecx + 4]
cmovae esi, dword [ebp - 0x12c]
add esi, ecx
mov dword [ebp - 0x11c], eax
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x417ca0
mov byte [ebp - 0x2c8], 0
push dword [ebp - 0x2c8]
push 4
lea ecx, [ebp - 0x12c]
call fcn.00407030
mov edx, dword [ebp - 0x118]
mov eax, edx
mov ecx, dword [ebp - 0x11c]
sub eax, ecx
push 6
push 0x6fccf8
cmp eax, 6
jb 0x417ce6
cmp edx, 0x10
lea esi, [ebp - 0x12c]
lea eax, [ecx + 6]
cmovae esi, dword [ebp - 0x12c]
add esi, ecx
mov dword [ebp - 0x11c], eax
push esi
call fcn.00507e10
add esp, 0xc
mov byte [esi + 6], 0
jmp 0x417d00
mov byte [ebp - 0x2c8], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x2c8]
push 6
call fcn.00407030
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x417d0a
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x118]
mov eax, esi
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x11c]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x417d4e
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
lea esi, [edx + eax]
push esi
call fcn.00507e10
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x417d67
mov byte [ebp - 0x2c8], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x2c8]
push edi
call fcn.00407030
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
push str.hget
push ecx
call fcn.00418a70
mov ecx, eax
call fcn.00405800
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x417dc8
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417dbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e73
push edx
push ecx
call fcn.00430080
add esp, 8
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp edx, 0x10
jb 0x417e19
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417e0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417e78
push edx
push ecx
call fcn.00430080
add esp, 8
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.004e0e70
xor al, al
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 0x10
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
int3