Function at 0x41d270
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505369
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x541074]
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 ebx, ecx
mov dword [ebp - 0x2b0], ebx
cmp byte [0x5480b5], 0
je 0x41d2fe
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41d2da
mov eax, dword [ecx]
jmp 0x41d2dc
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push 0x548518
mov word [eax], dx
call fcn.004034d0
call fcn.0041c2e0
add esp, 0x18
test al, al
jne 0x41d983
push 4
push 0
mov esi, 0x5484a0
push str.http
mov ecx, esi
call fcn.004077c0
cmp eax, 0xffffffff
je 0x41d9a1
call fcn.00402520
mov edi, 0x5483f8
lea ecx, [ebp - 0x248]
push str._tmpinstall.zip
mov edx, edi
call fcn.00404d30
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push ebx
cmovae edx, dword [ebp - 0x248]
cmp dword [0x5484b4], 8
push ecx
cmovae esi, dword [0x5484a0]
mov ecx, esi
call fcn.00402ad0
add esp, 8
test al, al
jne 0x41d423
push 0x51fd9c
lea ecx, [ebp - 0x230]
mov dword [ebx + 8], 2
call fcn.00402d60
push 0x5484a0
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d0]
call fcn.0041dd60
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x41d3c0
push 0
push 1
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x2bc]
cmp eax, 8
jb 0x41d3de
inc eax
lea ecx, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d0]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2c0], 0
cmp eax, 8
jb 0x41d419
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403ab0
call fcn.004025e0
jmp 0x41d5ad
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41d44e
mov eax, dword [ecx]
jmp 0x41d450
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push 0x548518
mov word [eax], dx
call fcn.004034d0
call fcn.0041c240
add esp, 0x18
cmp byte [0x5480ae], 0
je 0x41d4af
sub esp, 0xc
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.00406940
add esp, 0xc
mov eax, edi
cmp dword [0x54840c], 8
cmovae eax, dword [0x5483f8]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
sub esp, 0x28
lea ecx, [ebp - 0x248]
mov eax, esp
mov edx, edi
mov dword [eax], vtable.std::_Func_impl_class__lambda_5237d5367cfb4e241c005d0fca4b2ce5___class_std::allocator_int___unsigned_long_int__int__int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____unsigned_long_int_.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
cmp dword [0x54840c], 8
cmovae edx, dword [0x5483f8]
cmp dword [ebp - 0x234], 8
cmovae ecx, dword [ebp - 0x248]
call fcn.00416c10
add esp, 0x28
mov dword [ebp - 0x2ac], eax
test eax, eax
je 0x41d5d4
push 0x51fdbc
lea ecx, [ebp - 0x230]
mov dword [ebx + 8], 3
call fcn.00402d60
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dff0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x41d53c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00402d60
mov eax, dword [ebx + 4]
test eax, eax
je 0x41d55c
push 0
push 1
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x2d4]
cmp eax, 8
jb 0x41d57a
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x2d4], 7
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2d8], 0
mov word [ebp - 0x2e8], ax
call fcn.00402ca0
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41d983
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403ab0
jmp 0x41d983
call fcn.004025e0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ca0
push 0x5483e0
mov edx, str.Software_
lea ecx, [ebp - 0x290]
call fcn.004099f0
add esp, 4
push str.prompt
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0x12
call fcn.00402d60
push ecx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
push 0x5484e8
push eax
lea edx, [ebp - 0x290]
mov ecx, reloc.d2d1.dll_Ordinal_1
call fcn.00420c20
add esp, 0xc
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x230]
call fcn.00402ca0
push 0x51bb3c
mov edx, edi
lea ecx, [ebp - 0x260]
call fcn.00404d30
add esp, 4
push 0x548428
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x278]
call fcn.00404eb0
add esp, 4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x16
call fcn.00402ca0
cmp byte [0x541974], 0
mov esi, 0x548488
je 0x41d758
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e2480
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [0x54849c], 8
lea ecx, [ebp - 0x278]
mov ebx, esi
lea eax, [ebp - 0x218]
cmovae ebx, dword [0x548488]
mov edx, 0x548500
cmp dword [0x54840c], 8
cmovae edi, dword [0x5483f8]
cmp dword [0x54849c], 8
cmovae esi, dword [0x548488]
cmp dword [0x548514], 8
cmovae edx, dword [0x548500]
cmp dword [ebp - 0x264], 8
cmovae ecx, dword [ebp - 0x278]
push ecx
push ebx
push ecx
push edi
push ecx
push esi
push eax
call fcn.0041c4f0
mov ebx, dword [ebp - 0x2b0]
add esp, 0x1c
mov edi, 0x5483f8
mov esi, 0x548488
cmp byte [0x5480b4], 0
jne 0x41d8b4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e2480
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d60
push 0x51bb3c
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2a8]
call fcn.00404d30
add esp, 4
push 0x5483e0
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x230]
call fcn.00404eb0
add esp, 4
lea ecx, [ebp - 0x248]
push eax
call fcn.00402ce0
lea ecx, [ebp - 0x230]
call fcn.00402ca0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x17
call fcn.00402ca0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 0
cmovae eax, dword [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [0x54849c], 8
lea eax, [ebp - 0x248]
mov edx, 0x548488
mov ecx, 0x548500
cmovae esi, dword [0x548488]
cmp dword [0x54840c], 8
cmovae edi, dword [0x5483f8]
cmp dword [0x54849c], 8
cmovae edx, dword [0x548488]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
cmp dword [0x548514], 8
cmovae ecx, dword [0x548500]
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x2b0], ecx
lea ecx, [ebp - 0x278]
cmovae ecx, dword [ebp - 0x278]
push ecx
push esi
push ecx
push edi
push ecx
push edx
mov edx, dword [ebp - 0x2b0]
push eax
call fcn.0041c4f0
add esp, 0x1c
call fcn.0041c8c0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x16
call fcn.00402ca0
cmp byte [0x5480af], 0
je 0x41d8f5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0x5483e0
call fcn.00404740
sub esp, 0x18
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x278]
mov ecx, esp
push eax
call fcn.00404740
mov cl, 1
mov byte [ebp - 4], 0x16
call fcn.0041cf60
add esp, 0x30
push 0x51fe50
lea ecx, [ebp - 0x330]
call fcn.00402d60
mov eax, dword [ebx + 4]
test eax, eax
je 0x41d919
push 1
push 1
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x16
call fcn.00402ca0
cmp byte [0x5480ac], 0
je 0x41d96d
cmp dword [ebx + 4], 0
jne 0x41d96d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0x548500
call fcn.00404740
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x278]
mov ecx, esp
push eax
call fcn.00404740
mov byte [ebp - 4], 0x16
call fcn.0041c450
add esp, 0x30
lea ecx, [ebp - 0x278]
call fcn.00402ca0
lea ecx, [ebp - 0x290]
call fcn.00402ca0
xor eax, eax
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.004c8882
mov esp, ebp
pop ebp
ret
push str.RES_INSTALL
push 0x65
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41da73
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x230]
push 0x51fdf4
mov dword [ebp - 0x2ac], eax
call fcn.00402d60
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 6
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dff0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x41da02
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x300]
call fcn.00402d60
mov eax, dword [ebx + 4]
test eax, eax
je 0x41da22
push 0
push 1
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x2ec]
cmp eax, 8
jb 0x41da40
inc eax
lea ecx, [ebp - 0x300]
push eax
push dword [ebp - 0x300]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x2ec], 7
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2f0], 0
mov word [ebp - 0x300], ax
call fcn.00402ca0
lea ecx, [ebp - 0x230]
jmp 0x41d97e
push esi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2ac], eax
test eax, eax
jne 0x41db13
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x230]
push 0x51fdf4
mov dword [ebp - 0x2ac], eax
call fcn.00402d60
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 9
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dff0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x41dad2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x318]
call fcn.00402d60
mov eax, dword [ebx + 4]
test eax, eax
je 0x41daf2
push 0
push 1
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x318]
call fcn.00402ca0
lea ecx, [ebp - 0x260]
call fcn.00402ca0
lea ecx, [ebp - 0x230]
jmp 0x41d97e
push esi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41db94
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x230]
push 0x51fdf4
mov dword [ebp - 0x2ac], eax
call fcn.00402d60
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dff0
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x41db68
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402d60
push 0
push 1
mov ecx, ebx
call fcn.0041dcd0
lea ecx, [ebp - 0x260]
call fcn.00402ca0
lea ecx, [ebp - 0x230]
jmp 0x41d97e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x2b4], esi
test esi, esi
jne 0x41dbf2
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x230]
push 0x51fdf4
mov dword [ebp - 0x2ac], eax
call fcn.00402d60
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dff0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00402c40
jmp 0x41db68
sub esp, 0x18
mov ecx, esp
push 0x548518
call fcn.00404740
call fcn.0041c240
add esp, 0x18
mov edi, 0x5483f8
cmp byte [0x5480ae], 0
je 0x41dc44
sub esp, 0xc
mov ecx, esp
call fcn.004074e0
call fcn.00406940
add esp, 0xc
mov eax, edi
cmp dword [0x54840c], 8
cmovae eax, dword [0x5483f8]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp - 0x2ac]
sub esp, 0x28
mov eax, esp
mov ecx, esi
mov dword [eax], vtable.std::_Func_impl_class__lambda_e1225a4d77f68b0469e8fdd442bd613f___class_std::allocator_int___unsigned_long_int__int__int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____unsigned_long_int_.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
mov eax, edi
cmp dword [0x54840c], 8
cmovae eax, dword [0x5483f8]
push eax
call fcn.00417000
add esp, 0x2c
mov esi, eax
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x41d606
push 0x51fe10
lea ecx, [ebp - 0x230]
call fcn.00402d60
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 0x10
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041dd60
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00402c40
jmp 0x41db68