Function at 0x409920
Capabilities:
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d87cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1674
call fcn.0068e250
mov eax, dword [0x79a200]
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
push str.InitLauncher_Start_
call fcn.0041d700
add esp, 4
lea eax, [ebp - 0x1444]
push 0x228
push 0
push eax
call fcn.00690e10
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409a19
lea eax, [ebp - 0x1448]
mov dword [ebp - 0x1448], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409a12
nop dword [eax]
xor esi, esi
movzx eax, word [ebp + esi*2 - 0x1424]
push eax
call fcn.006a6e65
mov word [ebp + esi*2 - 0x1424], ax
add esp, 4
lea eax, [ebp - 0x1424]
inc esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4099d5
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x4099b2
lea eax, [ebp - 0x1424]
push 0x7708b8
push eax
call fcn.006a6b68
add esp, 8
test eax, eax
je 0x409c16
lea eax, [ebp - 0x1448]
push eax
push edi
call ebx
test eax, eax
jne 0x4099b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040a0a0
test eax, eax
je 0x409ca8
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov eax, dword [0x7ae4ec]
cmp eax, dword [ebx + 8]
jle 0x409a70
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x409a70
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
add esp, 4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 4
push 0x771088
call fcn.0041d700
add esp, 4
call fcn.0040fbc0
test eax, eax
js 0x409ca8
mov ecx, 0x7ae4f0
call fcn.004100d0
test eax, eax
js 0x409ca8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00690e10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ad0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x7ae544
call fcn.00406bf0
mov esi, dword [0x7ae544]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x409f3e
lea eax, [edi + edi]
mov edx, 1
sub edx, dword [esi - 4]
inc edi
mov dword [ebp - 0x167c], eax
movzx eax, word [eax + esi]
mov dword [ebp - 0x1680], eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, edx
jge 0x409b38
push edi
mov ecx, 0x7ae544
call fcn.00406f20
mov esi, dword [0x7ae544]
mov eax, dword [ebp - 0x167c]
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, dword [0x7ae544]
cmp edi, dword [eax - 8]
jg 0x409f3e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [0x7ae544]
push str.PatchConfigList.xml
push 0x7ae544
mov word [eax + edi*2], cx
lea eax, [ebp - 0x167c]
push eax
call fcn.00407a10
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [eax]
call fcn.0041ac90
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x167c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409baf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.PatchInfo_Init_Success_
call fcn.0041d700
mov eax, dword [0x7ae4ec]
add esp, 4
cmp eax, dword [ebx + 8]
jle 0x409bfe
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x409bfe
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
add esp, 4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 4
mov ecx, 0x7ae4f0
call fcn.00411030
test eax, eax
jne 0x409c86
mov eax, 9
jmp 0x409c99
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x3ea
lea ecx, [ebp - 0x167c]
call fcn.0041abd0
mov dword [ebp - 4], 0
push dword [ebp - 0x167c]
push 0
call fcn.0041d690
add esp, 8
push 0
push 0
push dword [ebp - 0x167c]
call fcn.0054779e
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x167c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409c78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x7adb3c], 1
xor eax, eax
jmp 0x409cad
mov ecx, 0x7ae4f0
call fcn.00412470
test eax, eax
jne 0x409cc9
mov eax, 0xa
mov dword [0x7ae4f4], 0
mov dword [0x7adb3c], eax
call fcn.00409f60
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.0068d76f
mov esp, ebp
pop ebp
ret
push 0x7712a0
call fcn.0041d700
add esp, 4
cmp dword [0x7ae530], 0xffffffff
jne 0x409ce9
mov ecx, 0x7ae4f0
call fcn.004114e0
mov eax, dword [0x7ae534]
cmp eax, 0xffffffff
jne 0x409d02
mov ecx, 0x7ae4f0
call fcn.00411d10
mov eax, dword [0x7ae534]
push eax
push dword [0x7ae530]
push str.LoadPatchVersionInfo_Complete_:_Client_Ver__d____Server_Ver__d_
call fcn.0041d700
add esp, 0xc
mov dword [0x7ae4f4], 1
push 4
call fcn.00553993
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1680], ecx
test ecx, ecx
je 0x409d63
mov dword [ecx], vtable.IServiceModule.0
mov eax, dword [ecx]
mov dword [0x7adb58], ecx
mov eax, dword [eax + 4]
cmp eax, method.std::codecvt_char__char__struct__Mbstatet_.virtual_16
je 0x409d6d
call eax
test eax, eax
jne 0x409d6d
mov dword [0x7adb3c], 3
jmp 0x409ca8
mov dword [0x7adb58], 0
push str.RemoveUsedFile
call fcn.0041d700
add esp, 4
mov ecx, str.Dnlauncher.tmp
call fcn.0041ac90
test eax, eax
jne 0x409f06
push 0x772da4
call fcn.0041d700
add esp, 4
lea eax, [ebp - 0xa18]
push 0x800
push 0
push eax
call fcn.00690e10
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa18]
add esp, 0xc
push 0x7709f8
push 0x771158
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.006a703e
add esp, 8
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp edi, 0xffffffff
je 0x409edf
push 0x800
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x1678], 0x22c
push 0
push eax
call fcn.00690e10
add esp, 0xc
lea eax, [ebp - 0x1678]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409ed8
cmp dword [ebp - 0x1670], ebx
je 0x409ec2
lea eax, [ebp - 0x1654]
push eax
lea eax, [ebp - 0x1218]
push 0x771158
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1218]
push 0x400
push eax
call fcn.006a703e
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.006a6b68
add esp, 0x10
test eax, eax
je 0x409ec2
push dword [ebp - 0x1670]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409ebc
lea eax, [ebp - 0x1680]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1680]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1678]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409e32
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, str.Dnlauncher.tmp
call fcn.0041ac90
test eax, eax
jne 0x409f06
mov ecx, str.PatchConfigList.xml
call fcn.0041ac90
mov dword [0x7adb3c], 4
jmp 0x409ca8
mov ecx, str.PatchConfigList.xml
call fcn.0041ac90
neg eax
sbb eax, eax
test al, 1
jne 0x409f27
mov dword [0x7adb3c], 4
jmp 0x409ca8
push str.InitLauncher_Success_
call fcn.0041d700
add esp, 4
mov eax, 1
jmp 0x409cad
push 0x80070057
call fcn.00407310
int3