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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63efb4
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x6d906c]
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 esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x64
jne 0x40f8e1
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x118]
push 1
mov dword [ebp - 0x2c8], eax
call fcn.004d21a0
mov dword [ebp - 0x118], 0x6c2554
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
mov dword [ebp - method.CParseSoftData.virtual_0], vtable.CParseSoftData.0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x23c], 0
push 0xa
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004d3330
push 0x38
call fcn.00421335
mov ebx, eax
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x2b4], esp
lea edi, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0xf
mov byte [ebx + 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebx], 0
mov dword [ebx + 0x34], 0
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x6c2ae0
mov byte [ecx], 0
call fcn.00403f10
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.dsid
mov byte [ecx], 0
call fcn.00403f10
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004d2730
mov eax, dword [ebp - 0x2c8]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x2b4], esp
mov ecx, esp
push eax
call fcn.00403930
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push 3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x6c25b8
mov byte [ecx], 0
call fcn.00403f10
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004d2730
mov dword [ebp - method.HttpGetImpl.virtual_0], vtable.HttpGetImpl.0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x274]
push 0
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004d14f0
test al, al
je 0x40f6c2
mov eax, dword [ebp - 0x270]
lea ecx, [ebx + 4]
mov dword [ebx], eax
lea eax, [ebp - 0x26c]
cmp ecx, eax
je 0x40f69c
cmp dword [ebp - 0x258], 0x10
push dword [ebp - 0x25c]
cmovae eax, dword [ebp - 0x26c]
push eax
call fcn.00403f10
lea eax, [ebp - 0x254]
cmp edi, eax
je 0x40f6c2
cmp dword [ebp - 0x240], 0x10
mov ecx, edi
push dword [ebp - 0x244]
cmovae eax, dword [ebp - 0x254]
push eax
call fcn.00403f10
cmp dword [ebx + 0x14], 0
je 0x40f88d
cmp dword [edi + 0x10], 0
je 0x40f88d
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x40f88d
cmp byte [eax], 0
jne 0x40f88d
add eax, 4
mov dword [ebp - 0x2cc], eax
cmp dword [eax + 0x10], 0
je 0x40f88d
push edi
lea ecx, [ebp - 0x40]
call fcn.00403930
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x2b4], esp
push dword [ebp - 0x2cc]
call fcn.00403930
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x6c2c50
mov byte [ecx], 0
call fcn.00403f10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.004c455b
add esp, 0x34
lea ecx, [ebp - 0xc4]
push 1
call fcn.004d21a0
mov dword [ebp - 0xc4], 0x6c2520
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
mov dword [ebp - method.CParseSiteSoftData.virtual_0], vtable.CParseSiteSoftData.0
push 0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call fcn.004d2630
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00403930
lea ecx, [ebp - 0xc4]
call fcn.004d3350
push 0
lea ecx, [ebp - 0xc4]
call fcn.004d2650
push 0xa
lea ecx, [ebp - 0xc4]
call fcn.004d3330
mov dword [ebp - method.HttpGetImpl.virtual_0], vtable.HttpGetImpl.0
push 0
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004d14f0
test al, al
je 0x40f82a
mov eax, dword [ebp - 0x278]
mov dword [ebx + 0x34], eax
lea ecx, [ebp - 0x2c8]
call fcn.004d1240
lea ecx, [ebp - 0x2ac]
mov dword [ebp - method.CParseSiteSoftData.virtual_0], vtable.CParseSiteSoftData.0
call fcn.00406650
lea ecx, [ebp - 0xc4]
call fcn.004d22b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f88d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f883
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41054b
push edx
push ecx
call fcn.004216e0
add esp, 8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40f8b1
mov dword [ebp - 0x2cc], ebx
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x410550
mov eax, dword [ecx]
lea edx, [ebp - 0x2cc]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x2c4]
call fcn.004d1240
lea ecx, [ebp - 0x270]
mov dword [ebp - method.CParseSoftData.virtual_0], vtable.CParseSoftData.0
call fcn.00406650
lea ecx, [ebp - 0x118]
call fcn.004d22b0
jmp 0x41052d
cmp eax, 0x65
jne 0x41052d
mov edi, dword [esi + 4]
xor ecx, ecx
push 0xc
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2c8], ecx
call fcn.00421335
mov ebx, eax
push 0x28
mov dword [ebp - 0x2c4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0x64
call fcn.00421335
mov esi, eax
add esp, 8
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 4], 0xa
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x40f94a
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f4]
mov dword [ebx + 8], esi
mov eax, dword [edi + 4]
mov edi, dword [eax]
mov esi, dword [eax + 0x34]
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2bc], esi
call fcn.004c80a6
mov dword [ebp - 4], 0xc
test edi, edi
je 0x41010f
mov esi, dword [ebp - 0x2c0]
xor ebx, ebx
mov edi, dword [edi + 0x1d4]
mov esi, dword [esi + 0x1d0]
cmp esi, edi
je 0x40fae0
nop
push esi
lea ecx, [ebp - 0x28]
call fcn.00403930
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ebx, esp
lea eax, [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00403930
push ebx
call fcn.004c49f1
add esp, 0x1c
lea ecx, [ebp - 0x2f4]
call fcn.004c842a
movzx ebx, al
test al, al
jne 0x40fa2c
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40fa15
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41054b
push edx
push ecx
call fcn.004216e0
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x40f9a0
mov ecx, 1
mov dword [ebp - 0x2c8], ecx
jmp 0x40faef
call fcn.004c9dfa
test al, al
je 0x40fa9b
mov eax, dword [0x6e936c]
test eax, eax
je 0x40fa9b
cmp dword [eax + 4], 4
jl 0x40fa9b
sub esp, 0xc
lea ecx, [ebp - 0x238]
push 0xbb
push str.CDoWebInstLogic::DoThread
push 4
call fcn.00409de0
mov edi, eax
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [edi + 0x30]
cmovae edx, dword [ebp - 0x28]
call fcn.00409c50
mov edx, 0x6c2c70
lea ecx, [edi + 0x30]
call fcn.00409c50
mov ecx, dword [0x6e936c]
push edi
call fcn.0040aff0
lea ecx, [ebp - 0x238]
call fcn.0040a1e0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40fad3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fac9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410555
push edx
push ecx
call fcn.004216e0
add esp, 8
mov eax, dword [ebp - 0x2cc]
cmp byte [eax], 0
je 0x40faed
xor ebx, ebx
mov ecx, 1
mov dword [ebp - 0x2c8], ecx
jmp 0x40faef
xor ecx, ecx
mov esi, dword [ebp - 0x2bc]
test esi, esi
je 0x40fb0c
cmp dword [esi + 0x74], 0
jbe 0x40fb0c
cmp dword [esi + 0x44], 0
jbe 0x40fb0c
inc ecx
mov dword [ebp - 0x2c8], ecx
test ecx, ecx
je 0x40fb24
mov eax, 0x64
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x2c4]
mov dword [ecx + 4], eax
jmp 0x40fb31
mov ecx, dword [ebp - 0x2c4]
mov dword [ecx + 4], 0x64
test ebx, ebx
jne 0x41010f
lea ecx, [ebp - 0x2b4]
call fcn.004d3cf0
mov esi, dword [ebp - 0x2c0]
mov byte [ebp - 4], 0xf
mov edi, dword [esi + 0x1e0]
mov esi, dword [esi + 0x1dc]
cmp esi, edi
je 0x40fe1a
mov ebx, dword [ebp - 0x2c0]
add ebx, 0x30
mov dword [ebp - 0x2d8], ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403930
push 0x104
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
push 0
push eax
call fcn.004fab00
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fbb0
sub ecx, edx
lea eax, [ebp - 0x21c]
push ecx
push eax
mov ecx, ebx
call fcn.00403f10
push ebx
call fcn.004c44ed
add esp, 4
test eax, eax
jne 0x40fc2f
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40fc12
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x40fbf3
mov eax, dword [ebx]
push 1
lea ebx, [eax + ecx]
push 0x6c2a30
push ebx
call fcn.004fa580
mov byte [ebx + 1], 0
add esp, 0xc
mov ebx, dword [ebp - 0x2d8]
jmp 0x40fc2f
push 1
push 0x6c2a30
mov byte [ebp - 0x2e0], 0
mov ecx, ebx
push dword [ebp - 0x2e0]
push 1
call fcn.00404bc0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov dword [ebp - 0x2dc], eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc50
mov eax, dword [ebx + 0x14]
sub ecx, edx
mov edx, dword [ebx + 0x10]
sub eax, edx
mov dword [ebp - 0x2d4], ecx
cmp ecx, eax
ja 0x40fca0
cmp dword [ebx + 0x14], 0x10
lea eax, [edx + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
jb 0x40fc7b
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2dc]
lea ebx, [eax + edx]
push ebx
call fcn.004fa580
mov eax, dword [ebp - 0x2d4]
add esp, 0xc
mov byte [ebx + eax], 0
mov ebx, dword [ebp - 0x2d8]
jmp 0x40fcbc
push ecx
push dword [ebp - 0x2dc]
mov byte [ebp - 0x2d0], 0
push dword [ebp - 0x2d0]
push ecx
mov ecx, ebx
call fcn.00404bc0
push ebx
call fcn.0040f270
test al, al
jne 0x40fef8
push 0
push dword [ebp - 0x2c4]
push 0x40f200
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00403930
lea eax, [ebp - 0x70]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x40fcff
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00403930
lea eax, [ebp - 0x58]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 8
jb 0x40fd2b
mov eax, dword [eax]
push eax
call fcn.004d4380
mov byte [ebp - 4], 0x11
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 0x2b5], al
cmp edx, 8
jb 0x40fd78
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41054b
push edx
push ecx
call fcn.004216e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40fdca
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fdc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41054b
push edx
push ecx
call fcn.004216e0
add esp, 8
cmp byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
jne 0x40fecf
cmp edx, 0x10
jb 0x40fe0f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41054b
push edx
push ecx
call fcn.004216e0
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x40fb71
mov esi, dword [ebp - 0x2c0]
cmp dword [esi + 0x44], 0x10
lea ebx, [esi + 0x30]
mov eax, ebx
jb 0x40fe2d
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x58]
push str.dlowerpkgfailexename_s
push eax
call fcn.004c422d
add esp, 0xc
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
push str.hget
push ecx
call fcn.00410720
mov ecx, eax
call fcn.00403110
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x40fe72
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x40fe97
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x40fe94
mov eax, dword [ebx]
push eax
call esi
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40ff50
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41055a
jmp 0x40ff46
cmp edx, 0x10
jb 0x40ff50
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41055f
jmp 0x40ff46
mov esi, dword [ebp - 0x2c0]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
mov byte [esi + 0xa8], 0
cmp edx, 0x10
jb 0x40fe20
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410564
push edx
push ecx
call fcn.004216e0
add esp, 8
jmp 0x40fe20
push edx
push ecx
call fcn.004216e0
add esp, 8
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0xc
call fcn.004d3e30
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
je 0x40ff7c
xor edx, edx
mov eax, 0x64
div ecx
mov ecx, dword [ebp - 0x2c4]
add dword [ecx], eax
jmp 0x40ff85
mov eax, dword [ebp - 0x2c4]
add dword [eax], 0x64
mov esi, dword [ebp - 0x2bc]
test esi, esi
je 0x41006a
mov edi, dword [ebp - 0x2c0]
add edi, 0x140
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 7
jb 0x40ffd6
lea eax, [ecx + 7]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x40ffbd
mov eax, dword [edi]
push 7
lea esi, [eax + ecx]
push str.__from
push esi
call fcn.004fa580
add esp, 0xc
mov byte [esi + 7], 0
jmp 0x40fff3
push 7
push str.__from
mov byte [ebp - 0x2b4], 0
mov ecx, edi
push dword [ebp - 0x2b4]
push 7
call fcn.00404bc0
mov eax, dword [ebp - 0x2c0]
cmp dword [eax + 0xc4], 0x10
lea edx, [eax + 0xb0]
jb 0x41000e
mov edx, dword [eax + 0xb0]
mov ecx, dword [eax + 0xc0]
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
sub eax, esi
mov dword [ebp - 0x2b4], ecx
cmp ecx, eax
ja 0x41004d
cmp dword [edi + 0x14], 0x10
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
jb 0x410034
mov edi, dword [edi]
push ecx
push edx
add esi, edi
push esi
call fcn.004fa580
mov eax, dword [ebp - 0x2b4]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x410064
push ecx
push edx
mov byte [ebp - 0x2b4], 0
push dword [ebp - 0x2b4]
push ecx
mov ecx, edi
call fcn.00404bc0
mov esi, dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
call fcn.0040a450
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 0x2b5], al
jb 0x410083
mov ebx, dword [ebx]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push ebx
call edi
cmp byte [ebp - 0x2b5], 0
mov ecx, str.fail
push eax
mov eax, 0x6c2c9c
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push str.instowserpkg_sexename_s
push eax
call fcn.004c422d
add esp, 0x10
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push str.hget
push ecx
call fcn.00410720
mov ecx, eax
call fcn.00403110
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x410115
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410103
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410569
push edx
push ecx
call fcn.004216e0
add esp, 8
jmp 0x410115
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test esi, esi
je 0x4104d6
cmp dword [esi + 0x74], 0
lea ebx, [esi + 0x64]
mov dword [ebp - 0x2d0], ebx
jbe 0x4104d6
cmp dword [esi + 0x44], 0
jbe 0x4104d6
lea ecx, [ebp - 0x2d4]
call fcn.004d3cf0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
push 0x10
push eax
call fcn.004c5f41
add esp, 0xc
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x18], 0
jbe 0x410179
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 0x4101c9
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004fab00
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4101b0
sub ecx, edx
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f10
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4101e3
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403f10
push esi
call fcn.004c44ed
add esp, 4
test eax, eax
jne 0x41024a
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x41022d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x41020e
mov eax, dword [esi]
push 1
lea esi, [eax + ecx]
push 0x6c2a30
push esi
call fcn.004fa580
mov byte [esi + 1], 0
add esp, 0xc
mov esi, dword [ebp - 0x2bc]
jmp 0x41024a
push 1
push 0x6c2a30
mov byte [ebp - 0x2b4], 0
mov ecx, esi
push dword [ebp - 0x2b4]
push 1
call fcn.00404bc0
cmp dword [esi + 0x60], 0x10
lea eax, [esi + 0x4c]
jb 0x410255
mov eax, dword [eax]
push eax
call edi
mov edx, eax
mov edi, edx
lea eax, [edi + 1]
nop
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x410260
mov ecx, dword [esi + 0x10]
sub edi, eax
mov esi, dword [esi + 0x14]
mov eax, esi
sub eax, ecx
cmp edi, eax
ja 0x4102ac
mov ebx, dword [ebp - 0x2bc]
lea eax, [ecx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
mov ebx, dword [ebp - 0x2d0]
cmp esi, 0x10
jb 0x410292
mov eax, dword [eax]
push edi
lea esi, [eax + ecx]
push edx
push esi
call fcn.004fa580
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x2bc]
jmp 0x4102c9
mov esi, dword [ebp - 0x2bc]
mov ecx, esi
push edi
push edx
mov byte [ebp - 0x2b4], 0
push dword [ebp - 0x2b4]
push edi
call fcn.00404bc0
push 0
push dword [ebp - 0x2c4]
push 0x40f200
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00403930
lea eax, [ebp - 0x70]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 8
jb 0x4102fe
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00403930
lea eax, [ebp - 0x40]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x410327
mov eax, dword [eax]
push eax
call fcn.004d4380
mov byte [ebp - 4], 0x17
add esp, 0x14
mov edx, dword [ebp - 0x2c]
mov bl, al
cmp edx, 8
jb 0x410370
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410366
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41056e
push edx
push ecx
call fcn.004216e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4103c2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4103b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410573
push edx
push ecx
call fcn.004216e0
add esp, 8
test bl, bl
jne 0x41047d
mov eax, dword [ebp - 0x2c0]
add eax, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x4103db
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x40]
push str.dlothpkgfailexename_s
push eax
call fcn.004c422d
add esp, 0xc
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push str.hget
push ecx
call fcn.00410720
mov ecx, eax
call fcn.00403110
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x410420
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebx
test eax, eax
jne 0x410445
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x410442
mov eax, dword [esi]
push eax
call ebx
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x41047d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410473
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410578
push edx
push ecx
call fcn.004216e0
add esp, 8
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4104b5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4104ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41057d
push edx
push ecx
call fcn.004216e0
add esp, 8
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xc
call fcn.004d3e30
mov ebx, dword [ebp - 0x2cc]
cmp dword [ebx + 0x2c], 0
je 0x410503
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x2b4], 0x64
test ecx, ecx
je 0x410582
mov eax, dword [ecx]
lea edx, [ebp - 0x2b4]
push edx
call dword [eax + 8]
cmp dword [ebx + 0x54], 0
je 0x410522
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x2b4], esi
test ecx, ecx
je 0x410587
mov eax, dword [ecx]
lea edx, [ebp - 0x2b4]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x2f4]
call fcn.004c824d
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.00421065
mov esp, ebp
pop ebp
ret 4
call fcn.004fe980
call fcn.0041eec0
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.0041eec0
call fcn.0041eec0
int3