Function at 0x4019d0
Capabilities:
Check if file exists
Create process on windows
Delete registry key
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43eb6d
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041a677
push 0x444768
mov ecx, esi
call fcn.0041c2ef
mov eax, dword [esi + 0xa0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x20]
push eax
xor ebx, ebx
push ebx
push 0x80
push ecx
call edi
push 6
push 0xaa
push 0x187
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041c3ae
push ebx
mov ecx, esi
call fcn.0041e316
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x1fc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
lea edx, [esi + 0xa4]
push edx
mov ecx, eax
call fcn.00401080
mov eax, esi
call fcn.00401fb0
mov eax, dword [esi + 0x20]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x20]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push str.http:__cc_ns.perfectworld.com_clients_ArcInstall_v20140625a.exe
lea ecx, [esp + 0x18]
call fcn.00403ea0
lea edx, [esi + 0x214]
push edx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x460], ebx
call fcn.004027c0
test eax, eax
jne 0x401b00
push str.File_corrupted__Please_re_download_installer.
mov ebx, esi
call fcn.004026a0
mov byte [esi + 0x21c], 0
jmp 0x401e67
lea ecx, [esp + 0x28]
push ecx
push 0x201
push ebx
push str.SoftwarePerfect_World_EntertainmentArc
push 0x80000002
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c45
push 0x206
lea edx, [esp + 0x3a]
push ebx
push edx
mov word [esp + 0x40], bx
call fcn.0042a080
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.launcher
push eax
mov dword [esp + 0x48], 0x500
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401c45
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403ea0
mov byte [esp + 0x458], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c0d
push 0x444e9c
lea ecx, [esp + 0x24]
call fcn.00403ea0
mov byte [esp + 0x458], 2
mov eax, dword [esi + 0x218]
cmp dword [eax - 0xc], ebx
je 0x401bd3
mov ecx, eax
push ecx
lea edx, [esp + 0x24]
push str.gamecustom__s
push edx
call fcn.00403e80
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push 8
push ebx
push eax
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
mov byte [esi + 0x21c], 0
call eax
mov byte [esp + 0x458], 1
mov eax, dword [esp + 0x20]
jmp 0x401e23
push str.SoftwarePerfect_World_EntertainmentArc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x2f
push ecx
call fcn.00426f79
mov edx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
jne 0x401c61
or ecx, 0xffffffff
jmp 0x401c67
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [edx - 0xc]
sub eax, ecx
sub eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403010
push 0x206
lea eax, [esp + 0x242]
push ebx
mov byte [esp + 0x460], 3
push eax
mov word [esp + 0x248], bx
call fcn.0042a080
add esp, 0xc
push 0x104
lea ecx, [esp + 0x240]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x23c]
push edx
lea ecx, [esp + 0x20]
call fcn.00403ea0
mov bl, 4
mov byte [esp + 0x458], bl
mov eax, dword [esp + 0x1c]
push 0x5c
push eax
call fcn.00426f79
add esp, 8
test eax, eax
je 0x401d3c
sub eax, dword [esp + 0x1c]
sar eax, 1
test eax, eax
jle 0x401d3c
add eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403090
lea ecx, [esi + 0x210]
push eax
mov byte [esp + 0x45c], 5
call fcn.00403d60
mov byte [esp + 0x458], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edi, [esi + 0x210]
lea edx, [esp + 0x30]
push edi
push edx
call fcn.00403190
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x45c], 6
call fcn.00403d60
mov byte [esp + 0x458], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00405280
test eax, eax
jne 0x401ddc
push str.Initialization_failed__Please_close_the_installer_and_try_again.
mov ebx, esi
call fcn.004026a0
mov byte [esp + 0x458], 3
mov eax, dword [esp + 0x1c]
xor bl, bl
add eax, 0xfffffff0
mov byte [esi + 0x21c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], bl
jmp 0x401e47
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
lea edi, [esi + 0x20c]
push edi
call fcn.004054c0
add esp, 4
test eax, eax
je 0x401dfc
push str.Initialization_failed__Please_close_the_dialog_and_try_again.
jmp 0x401e10
mov edi, dword [edi]
test edi, edi
je 0x401e0b
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push str.Initializing...
mov ebx, esi
call fcn.004026a0
mov byte [esp + 0x458], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0042655f
mov esp, ebp
pop ebp
ret