Function at 0x4270c0
Capabilities:
Check if file exists
Delete file
Delete registry key
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a6b4
mov eax, dword fs:[0]
push eax
mov eax, 0x2510
call fcn.00435340
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x24b5], 0
push str.UninstallGame
lea ecx, [ebp - 0x2464]
call fcn.00423890
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2464]
push eax
lea ecx, [ebp + 8]
call fcn.00422500
test eax, eax
jne 0x427131
mov dword [ebp - 0x24cc], 1
jmp 0x42713b
mov dword [ebp - 0x24cc], 0
mov cl, byte [ebp - 0x24cc]
mov byte [ebp - 0x24b6], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2464]
call fcn.00422090
movzx edx, byte [ebp - 0x24b6]
test edx, edx
je 0x427168
mov byte [ebp - 0x24b5], 1
mov dword [ebp - 0x24bc], 0
lea eax, [ebp - 0x24bc]
push eax
push 8
push 0
push str.SOFTWAREPerfect_World_EntertainmentCore
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427196
jmp 0x42765c
push 0x400
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.004a2c70
add esp, 0xc
mov dword [ebp - 0x24c8], 0x200
mov dword [ebp - 0x24c0], 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x24c8]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x24c0]
push ecx
mov edx, dword [ebp - 0x24bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x427654
movzx eax, byte [ebp - 0x24b5]
test eax, eax
jne 0x42720f
mov ecx, dword [ebp - 0x24c0]
add ecx, 1
mov dword [ebp - 0x24c0], ecx
push 0x1000
push 0
lea edx, [ebp - 0x2410]
push edx
call fcn.004a2c70
add esp, 0xc
push str.SOFTWAREPerfect_World_EntertainmentCore
lea eax, [ebp - 0x2410]
push eax
call fcn.004d2ba6
add esp, 8
push 0x511568
lea ecx, [ebp - 0x2410]
push ecx
call fcn.004d2b75
add esp, 8
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x2410]
push eax
call fcn.004d2b75
add esp, 8
mov dword [ebp - 0x24c4], 0
lea ecx, [ebp - 0x24c4]
push ecx
push 1
push 0
lea edx, [ebp - 0x2410]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42762d
push 0x800
push 0
lea eax, [ebp - 0xc10]
push eax
call fcn.004a2c70
add esp, 0xc
mov dword [ebp - 0x24d8], 0x400
mov dword [ebp - 0x24dc], 1
lea ecx, [ebp - 0x24d8]
push ecx
lea edx, [ebp - 0xc10]
push edx
lea eax, [ebp - 0x24dc]
push eax
push 0
push 0x51156c
mov ecx, dword [ebp - 0x24c4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427620
lea edx, [ebp - 0xc10]
push edx
call fcn.004cb76f
add esp, 4
movzx eax, word [ebp + eax*2 - 0xc12]
cmp eax, 0x5c
jne 0x427345
lea ecx, [ebp - 0xc10]
push ecx
call fcn.004cb76f
add esp, 4
lea edx, [eax + eax - 2]
mov dword [ebp - 0x24d0], edx
cmp dword [ebp - 0x24d0], 0x800
jae 0x427330
jmp 0x427335
call fcn.00435143
xor eax, eax
mov ecx, dword [ebp - 0x24d0]
mov word [ebp + ecx - 0xc10], ax
lea edx, [ebp - 0xc10]
push edx
lea ecx, [ebp - 0x2448]
call fcn.00423890
mov byte [ebp - 4], 2
push 0x800
push 0
lea eax, [ebp - 0x1410]
push eax
call fcn.004a2c70
add esp, 0xc
push 0x400
lea ecx, [ebp - 0xc10]
push ecx
lea edx, [ebp - 0x1410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x511588
lea ecx, [ebp - 0x242c]
call fcn.00423890
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x2498]
call fcn.00423890
mov dword [ebp - 0x24e0], eax
mov ecx, dword [ebp - 0x24e0]
add ecx, 4
call fcn.00414860
cmp eax, 2
jbe 0x4273d5
mov dword [ebp - 0x24d4], 1
jmp 0x4273df
mov dword [ebp - 0x24d4], 0
mov cl, byte [ebp - 0x24d4]
mov byte [ebp - 0x24b7], cl
lea ecx, [ebp - 0x2498]
call fcn.00422090
movzx edx, byte [ebp - 0x24b7]
test edx, edx
je 0x4274e2
push 2
lea eax, [ebp - 0x247c]
push eax
lea ecx, [ebp - 0x1410]
push ecx
lea ecx, [ebp - 0x24b4]
call fcn.00423890
mov dword [ebp - 0x24e4], eax
mov edx, dword [ebp - 0x24e4]
mov dword [ebp - 0x24e8], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24e8]
call fcn.004227a0
mov dword [ebp - 0x24ec], eax
mov eax, dword [ebp - 0x24ec]
push eax
lea ecx, [ebp - 0x2428]
call fcn.00417c90
lea ecx, [ebp - 0x247c]
call fcn.00417b10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24b4]
call fcn.00422090
lea ecx, [ebp - 0x242c]
call fcn.004222c0
push 0
lea ecx, [ebp - 0x2428]
call fcn.00417d10
movzx ecx, word [eax]
cmp ecx, 0x61
jl 0x4274d2
push 0
lea ecx, [ebp - 0x2428]
call fcn.00417d10
movzx edx, word [eax]
cmp edx, 0x7a
jg 0x4274d2
push 1
lea ecx, [ebp - 0x2428]
call fcn.00417d10
movzx eax, word [eax]
cmp eax, 0x61
jl 0x4274d2
push 1
lea ecx, [ebp - 0x2428]
call fcn.00417d10
movzx ecx, word [eax]
cmp ecx, 0x7a
jle 0x4274e2
push 0x51158c
lea ecx, [ebp - 0x242c]
call fcn.00422f40
push 0x511038
lea ecx, [ebp - 0x2444]
call fcn.0041f680
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2510], esp
lea edx, [ebp - 0x2448]
push edx
call fcn.00423970
call fcn.00415b20
add esp, 0x1c
movzx eax, byte [ebp - 0x24b5]
test eax, eax
je 0x427602
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2514], esp
push 0x511590
call fcn.00423890
mov dword [ebp - 0x2518], eax
mov byte [ebp - 4], 5
push 1
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x251c], esp
lea ecx, [ebp - 0x2444]
call fcn.00411e30
push eax
mov ecx, esi
call fcn.00423890
mov byte [ebp - 4], 3
call fcn.004151b0
add esp, 0x3c
mov byte [ebp - 0x24b8], al
movzx ecx, byte [ebp - 0x24b8]
test ecx, ecx
jne 0x42758e
lea edx, [ebp - 0x2410]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427602
xor ecx, ecx
mov dword [ebp - 0x250c], ecx
mov dword [ebp - 0x2508], ecx
mov dword [ebp - 0x2504], ecx
mov dword [ebp - 0x2500], ecx
mov dword [ebp - 0x24fc], ecx
mov dword [ebp - 0x24f8], ecx
mov dword [ebp - 0x24f4], ecx
mov word [ebp - 0x24f0], cx
mov dword [ebp - 0x2508], 3
lea edx, [ebp - 0x1410]
mov dword [ebp - 0x2504], edx
mov eax, 0x614
mov word [ebp - 0x24fc], ax
lea ecx, [ebp - 0x250c]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x242c]
call fcn.00422090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2448]
call fcn.00422090
mov edx, dword [ebp - 0x24c4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c8], 0x200
mov eax, dword [ebp - 0x24c8]
push eax
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.004a2c70
add esp, 0xc
jmp 0x4271c0
xor edx, edx
jne 0x427172
cmp dword [ebp - 0x24bc], 0
je 0x4276b8
mov eax, dword [ebp - 0x24bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24bc], 0
lea ecx, [ebp - 0x24bc]
push ecx
push 1
push 0
push str.SOFTWAREPerfect_World_EntertainmentCore
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4276b8
push str.SOFTWAREPerfect_World_EntertainmentCore
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x24bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00422090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434475
mov esp, ebp
pop ebp
ret