Function at 0x4471a1
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x418
mov eax, 0x5d3ce4
call fcn.00492e9f
mov dword [ebp - 0x414], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
call fcn.0042b3c1
mov ecx, eax
call fcn.004329c9
lea eax, [ebp - 0x364]
push eax
call fcn.0042b3c1
mov ecx, eax
call fcn.00431fc5
xor eax, eax
lea ecx, [ebp - 0x394]
push esi
mov dword [ebp - 4], eax
call fcn.00402120
xor eax, eax
lea ecx, [ebp - 0x3f4]
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x364]
push eax
call fcn.00404460
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3dc]
call fcn.00404460
push 3
pop eax
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x3f4]
push eax
call fcn.0041f816
lea eax, [ebp - 0x3dc]
push eax
call fcn.0041f816
cmp dword [ebp - 0x350], 8
lea eax, [ebp - 0x364]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x364]
pop ecx
pop ecx
push eax
call ebx
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x3dc]
mov dword [ebp - 0x424], ecx
lea ecx, [ebp - 0x3f4]
push eax
call fcn.004204ef
test eax, eax
je 0x4472aa
cmp dword [ebp - 0x350], 8
lea eax, [ebp - 0x364]
cmovae eax, dword [ebp - 0x364]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402120
call fcn.0041f95b
add esp, 0x18
mov ecx, dword [ebp - 0x414]
call fcn.00447930
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.0041c92d
mov dword [esp], 0x5dc9d0
push str.7zData
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4478d6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x1869f
push 0x2710
mov edi, eax
call fcn.0041e109
cdq
push edx
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.0041ef56
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push str.WanNeng
push eax
call fcn.005abf5f
lea eax, [ebp - 0x218]
push 0x5d8b80
push eax
call fcn.005abf5f
cmp dword [ebp - 0x3b0], 8
lea eax, [ebp - 0x3c4]
cmovae eax, dword [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005abf5f
lea eax, [ebp - 0x218]
push str._7zData.7z
push eax
call fcn.005abf5f
add esp, 0x34
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x4473b8
lea eax, [ebp - 0x218]
push eax
call fcn.0041cebd
pop ecx
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
inc eax
push eax
push ebx
push eax
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x447402
push ebx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push edi
push dword [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
xor edi, edi
lea eax, [ebp - 0x31c]
push edi
push eax
call fcn.005a8e00
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041f7a2
add esp, 0x14
call fcn.0042b3c1
mov ecx, eax
call fcn.00432640
call fcn.0042b3c1
mov ecx, eax
call fcn.004317ca
cmp dword [ebp - 0x380], 8
lea ecx, [ebp - 0x410]
push ecx
push fcn.00447917
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x410], edi
lea eax, [ebp - 0x394]
cmovae eax, dword [ebp - 0x394]
push ecx
push eax
call fcn.0044b5e9
add esp, 0x10
mov dword [ebp - 0x33c], edi
xor eax, eax
lea ecx, [ebp - 0x34c]
mov esi, 0x640078
mov word [ebp - 0x34c], ax
push 7
pop ebx
push edi
push esi
mov dword [ebp - 0x338], ebx
call fcn.004022f0
push edi
xor eax, eax
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x36c], edi
mov word [ebp - 0x37c], ax
call fcn.004022f0
push edi
xor eax, eax
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x324], edi
mov word [ebp - 0x334], ax
call fcn.004022f0
lea eax, [ebp - 0x394]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x3ac]
call fcn.00404460
mov esi, str.1.0.3.10327
mov byte [ebp - 4], 8
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00404690
mov esi, 0x6411b8
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00404690
mov esi, str.WnPYCore.exe
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00404690
call fcn.0042b3c1
mov ecx, eax
call fcn.0043203c
mov ebx, eax
call fcn.0042b3c1
mov ecx, eax
call fcn.00432005
mov edi, eax
lea ecx, [ebp - 0x40c]
push edi
call fcn.00402120
mov esi, 0x5dca20
mov byte [ebp - 4], 9
push esi
call fcn.005abff2
pop ecx
push eax
push 0
push esi
lea ecx, [ebp - 0x40c]
call fcn.00405150
mov dword [ebp - 0x418], eax
call fcn.0042b3c1
mov ecx, eax
call fcn.0046339e
xor esi, esi
test eax, eax
push 1
pop eax
cmovne esi, eax
call fcn.0042b3c1
mov ecx, eax
call fcn.00463341
mov edx, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
inc ecx
test edx, edx
cmove ecx, esi
xor esi, esi
inc esi
mov dword [ebp - 0x414], ecx
test edx, edx
cmove esi, eax
call fcn.0042b3c1
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
push str.InstallSpreadOperate
mov dword [ebp - 0x420], ecx
call fcn.005abff2
pop ecx
push eax
push str.InstallSpreadOperate
lea ecx, [ebp - 0x37c]
call fcn.004022f0
push ebx
call fcn.005abff2
pop ecx
test eax, eax
je 0x447662
push str.__OldClientID
call fcn.005abff2
pop ecx
push eax
push str.__OldClientID
lea ecx, [ebp - 0x334]
call fcn.004022f0
xor eax, eax
cmp word [ebx], ax
je 0x44764e
push ebx
call fcn.005abff2
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x334]
call fcn.00404690
mov ebx, str.___NewClientID
jmp 0x447667
mov ebx, str.__NewClientID
push ebx
call fcn.005abff2
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x334]
call fcn.00404690
xor ebx, ebx
cmp word [edi], bx
jne 0x447686
mov eax, ebx
jmp 0x44768d
push edi
call fcn.005abff2
pop ecx
push eax
push edi
lea ecx, [ebp - 0x334]
call fcn.00404690
cmp dword [ebp - 0x418], 0xffffffff
je 0x4476bc
mov edi, str.___InstallMoniter_true
push edi
call fcn.005abff2
pop ecx
push eax
push edi
lea ecx, [ebp - 0x334]
call fcn.00404690
test esi, esi
jne 0x4476d9
mov esi, str.___InstallService_false
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00404690
cmp dword [ebp - 0x414], 0
jne 0x4476fb
mov esi, str.___InstallStartMenu_false
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00404690
cmp dword [ebp + 0xc], 0
jne 0x44771a
mov esi, str.___InstallSilent_false
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00404690
cmp dword [ebp - 0x424], 0
je 0x44773c
mov esi, str.___OldInstall_true
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00404690
cmp dword [ebp - 0x420], 0
je 0x44775e
mov esi, str.___PureMode_true
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00404690
mov esi, 0x5d8b4c
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.004022f0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x34c]
call fcn.004047c0
mov esi, 0x5d8b50
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.00404690
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x34c]
call fcn.004047c0
mov esi, 0x5d8b7c
push esi
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.00404690
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x34c]
call fcn.004047c0
cmp dword [ebp - 0x338], 8
lea eax, [ebp - 0x34c]
cmovae eax, dword [ebp - 0x34c]
push eax
push str.cmd:_s
call fcn.0042c9be
cmp dword [ebp - 0x338], 8
lea eax, [ebp - 0x34c]
push 0x2710
cmovae eax, dword [ebp - 0x34c]
xor edi, edi
inc edi
push edi
push eax
call fcn.0041ce96
mov ecx, dword [ebp - 0x410]
push 0x64
pop esi
mov eax, esi
sub eax, ecx
cdq
idiv dword [ebp - 0x41c]
push esi
add ecx, eax
push ecx
mov dword [ebp - 0x410], ecx
call fcn.00447917
mov ecx, dword [ebp - 0x410]
mov eax, esi
sub eax, ecx
cdq
idiv dword [ebp - 0x41c]
push esi
add ecx, eax
push ecx
mov dword [ebp - 0x410], ecx
call fcn.00447917
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push esi
call fcn.00447917
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x40c]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x3ac]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x334]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x37c]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x34c]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x3c4]
call fcn.00402230
jmp 0x4478db
xor edi, edi
xor ebx, ebx
inc edi
push ebx
push edi
lea ecx, [ebp - 0x3dc]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x3f4]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x394]
call fcn.00402230
push ebx
push edi
lea ecx, [ebp - 0x364]
call fcn.00402230
call fcn.00492e49
ret 0xc