Function at 0x4027f0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41da03
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x424084]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x424084]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [esp + 0x18], eax
test byte [0x42642c], bl
jne 0x402872
or dword [0x42642c], ebx
xor edi, edi
mov dword [esp + 0xf8], edi
call fcn.00405ed0
push 0x41dcf0
call fcn.0040f394
add esp, 4
mov dword [esp + 0xf8], 0xffffffff
jmp 0x402874
xor edi, edi
xor ecx, ecx
push edi
mov word [esp + 0x98], cx
mov esi, 7
push 0x4263c4
or eax, 0xffffffff
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
call fcn.004014b0
mov dword [esp + 0xf8], ebx
test byte [0x42642c], 1
jne 0x4028de
or dword [0x42642c], ebx
mov byte [esp + 0xf8], 2
call fcn.00405ed0
push 0x41dcf0
call fcn.0040f394
add esp, 4
mov byte [esp + 0xf8], 1
mov edx, dword [0x4263fc]
xor eax, eax
push edi
mov word [esp + 0x7c], ax
push 0x4263e0
or eax, 0xffffffff
lea ecx, [esp + 0x80]
mov dword [esp + 0x24], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
call fcn.004014b0
push 0x420764
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x104], 3
call fcn.00404dc0
add esp, 0xc
push eax
mov eax, str.XYRingStones.exe
lea ecx, [esp + 0x44]
mov byte [esp + 0xfc], 4
call fcn.00404eb0
add esp, 4
mov ebx, 8
mov byte [esp + 0xf8], 6
cmp dword [esp + 0x70], ebx
jb 0x40296e
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040ecdf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], cx
cmp dword [esp + 0xa4], edi
je 0x402a01
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x402994
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402a01
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], ebx
jae 0x4029b0
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x88]
push eax
mov eax, dword [ecx + 0x10]
call fcn.00405150
test eax, eax
jne 0x4029fa
cmp dword [esp + 0x1c], 0x20
jne 0x4029fa
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x4029dd
lea edi, [esp + 0x40]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, 0x420730
mov esi, eax
call fcn.00402660
test eax, eax
jne 0x402e9b
lea ebx, [eax + 8]
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov word [esp + 0x24], dx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xfc], 7
call fcn.00402fb0
test al, al
jne 0x402a75
mov eax, dword [0x4263a4]
cmp dword [eax], 2
mov dword [esp + 0x18], eax
jl 0x402a59
push 0x30
push str.InstallXYRingTool.cpp
push 2
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, 0x42089c
call fcn.0040e050
mov edx, dword [esp + 0x28]
push edx
call fcn.0040d7e0
cmp dword [esp + 0x38], ebx
jb 0x402f05
mov eax, dword [esp + 0x24]
push eax
call fcn.0040ecdf
add esp, 4
jmp 0x402f05
push 0xa
push 0x81
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, edi
jne 0x402b69
mov eax, dword [0x4263a4]
cmp dword [eax], 2
mov esi, eax
jl 0x402adb
push 0x3a
push str.InstallXYRingTool.cpp
push 2
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.read_resource_failed.
call fcn.0040e050
push esi
call fcn.0040d7e0
cmp dword [esp + 0x38], ebx
jb 0x402aee
mov edx, dword [esp + 0x24]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov word [esp + 0x24], ax
cmp dword [esp + 0x54], ebx
jb 0x402b15
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040ecdf
add esp, 4
xor edx, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
cmp dword [esp + 0x8c], ebx
jb 0x402b3a
mov eax, dword [esp + 0x78]
push eax
call fcn.0040ecdf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
mov word [esp + 0x78], cx
cmp dword [esp + 0xa8], ebx
jb 0x402f7a
mov edx, dword [esp + 0x94]
push edx
jmp 0x402f72
mov ax, word [esi]
mov word [esp + 0x1c], ax
cmp al, 0x37
jne 0x402ec0
mov ecx, dword [esp + 0x1c]
shr ecx, 8
cmp cl, 0x7a
jne 0x402ec0
call fcn.00402330
push edi
lea eax, [esp + 0x28]
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
call fcn.004014b0
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebx
jae 0x402bc8
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x98]
call fcn.00405150
test eax, eax
jne 0x402c28
push str._back
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xb8]
push edx
call fcn.00404dc0
add esp, 0xc
mov edi, eax
lea esi, [esp + 0x5c]
mov byte [esp + 0xf8], 9
call fcn.00403fe0
lea esi, [esp + 0xb0]
mov byte [esp + 0xf8], bl
call fcn.00401990
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x402c36
lea eax, [esp + 0x5c]
push eax
call fcn.00401a50
mov ecx, dword [esp + 0x60]
add esp, 4
cmp dword [esp + 0x70], ebx
jae 0x402c4d
lea ecx, [esp + 0x5c]
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00406c50
add esp, 8
test al, al
jne 0x402cd8
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x402c6d
lea eax, [esp + 0x5c]
push eax
call fcn.00401a50
mov eax, dword [0x4263a4]
add esp, 4
cmp dword [eax], 2
mov esi, eax
jl 0x402ca3
push 0x51
push str.InstallXYRingTool.cpp
push 2
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.7Z_Uncompress_failed.
call fcn.0040e050
push esi
call fcn.0040d7e0
lea esi, [esp + 0x5c]
call fcn.00401990
lea esi, [esp + 0x24]
call fcn.00401990
lea esi, [esp + 0x40]
call fcn.00401990
lea esi, [esp + 0x78]
call fcn.00401990
lea esi, [esp + 0x94]
call fcn.00401990
jmp 0x402f7a
call fcn.00406100
cmp dword [eax + 0x68], 0
je 0x402cf4
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x60]
call fcn.00403980
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebx
jae 0x402d02
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x98]
call fcn.00405150
test eax, eax
jne 0x402d64
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x402d35
lea eax, [esp + 0x94]
push eax
call fcn.00401a50
mov ecx, dword [esp + 0x28]
add esp, 4
cmp dword [esp + 0x38], ebx
jae 0x402d4c
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x402d5a
lea eax, [esp + 0x5c]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00406100
call fcn.00406570
call fcn.00406100
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00406490
call fcn.00406100
mov edx, dword [esp + 0x18]
mov ecx, eax
call fcn.004064d0
mov eax, str.XYRingStones.exe
lea ecx, [esp + 0xb0]
call fcn.00405970
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xfc], 0xa
call fcn.00403540
lea esi, [esp + 0xb0]
mov byte [esp + 0xf8], bl
call fcn.00401990
push 0x420764
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.00404dc0
add esp, 0xc
push eax
mov eax, str.XYRingStones.exe
lea ecx, [esp + 0xb4]
mov byte [esp + 0xfc], 0xb
call fcn.00404eb0
add esp, 4
mov edi, eax
lea esi, [esp + 0x40]
mov byte [esp + 0xf8], 0xc
call fcn.00403fe0
lea esi, [esp + 0xb0]
call fcn.00401990
lea esi, [esp + 0xcc]
mov byte [esp + 0xf8], bl
call fcn.00401990
push 0x420764
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00404dc0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0xf8], 0xd
call fcn.00403800
lea esi, [esp + 0xcc]
call fcn.00401990
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x402e77
lea edi, [esp + 0x40]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, str._SetupStart
mov esi, eax
call fcn.00402660
lea esi, [esp + 0x5c]
call fcn.00401990
lea esi, [esp + 0x24]
call fcn.00401990
lea esi, [esp + 0x40]
call fcn.00401990
lea esi, [esp + 0x78]
call fcn.00401990
lea esi, [esp + 0x94]
call fcn.00401990
mov al, 1
jmp 0x402f7c
mov eax, dword [0x4263a4]
cmp dword [eax], 2
mov esi, eax
jl 0x402eed
push 0x6d
push str.InstallXYRingTool.cpp
push 2
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, str._rN_e
call fcn.0040e050
push esi
call fcn.0040d7e0
cmp dword [esp + 0x38], ebx
jb 0x402f00
mov eax, dword [esp + 0x24]
push eax
call fcn.0040ecdf
add esp, 4
mov esi, 7
xor ecx, ecx
mov word [esp + 0x24], cx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
cmp dword [esp + 0x54], ebx
jb 0x402f27
mov edx, dword [esp + 0x40]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov word [esp + 0x40], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
cmp dword [esp + 0x8c], ebx
jb 0x402f4c
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0040ecdf
add esp, 4
xor edx, edx
mov word [esp + 0x78], dx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
cmp dword [esp + 0xa8], ebx
jb 0x402f7a
mov eax, dword [esp + 0x94]
push eax
call fcn.0040ecdf
add esp, 4
xor al, al
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret 4