Function at 0x41cff0
Capabilities:
Create process on windows
Enumerate processes
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e4b8
mov eax, dword fs:[0]
push eax
sub esp, 0xa98
mov eax, dword [0x55b1c4]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa80], 0
push 0x208
mov dword [0x5617b4], eax
lea eax, [ebp - 0x830]
push 0
push eax
mov dword [ebp - 0xa90], esi
mov dword [ebp - 0xaa0], ecx
call fcn.004803b0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00422320
lea eax, [ebp - 0x830]
push eax
push str.WorkPath__s
call fcn.00428250
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004803b0
add esp, 0x14
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004b18f8
add esp, 8
test eax, eax
je 0x41d0e3
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x628]
push eax
push str.set_WorkPath__s
call fcn.00428250
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa84], 8
push eax
mov dword [ebp - 0xa80], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x51fc6c
push 0
call fcn.004b50f5
add esp, 8
mov ecx, 0x561998
push 0
push dword [0x5617b4]
push 0
call fcn.004117f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004803b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x51fc70
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x41db78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa7c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa7c]
call fcn.00408870
test al, al
jne 0x41d1e2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d1c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa7c]
call fcn.0040a770
lea eax, [ebp - 0xa7c]
mov dword [ebp - 4], 1
push eax
mov ecx, 0x5621d8
call fcn.00427e10
mov edx, dword [ebp - 0xa7c]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d221
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00413aa0
mov ecx, eax
call fcn.0040ff20
lea ecx, [ebp - 0xaa4]
call fcn.00405220
mov dword [ebp - 4], 2
call fcn.0041a850
mov ecx, eax
call fcn.00454790
mov eax, dword [0x561a48]
test al, 1
jne 0x41d27c
or eax, 1
mov dword [0x561a48], eax
mov ecx, 0x561a44
mov byte [ebp - 4], 3
call fcn.0041a800
push 0x519f20
call fcn.00455dd5
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x561a44
call fcn.0041a8e0
push 0x51fbe4
call fcn.00413b30
mov ecx, eax
call fcn.0040a8a0
lea eax, [ebp - 0xa80]
push eax
call fcn.0042b630
add esp, 4
push eax
mov byte [ebp - 4], 4
call fcn.00413b30
mov ecx, eax
call fcn.0040a760
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d2d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00413aa0
mov ecx, eax
call fcn.00410030
test al, al
je 0x41d337
lea ecx, [ebp - 0xa75]
call fcn.0041ba70
push eax
lea ecx, [ebp - 0xa88]
call fcn.004077f0
lea eax, [ebp - 0xa88]
mov byte [ebp - 4], 5
push eax
call fcn.00413b30
mov ecx, eax
call fcn.0040a6c0
mov edx, dword [ebp - 0xa88]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d337
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov edi, eax
lea eax, [ebp - 0xa70]
push 0
push eax
call fcn.004803b0
add esp, 0xc
mov dword [ebp - 0xa88], 0
mov dword [ebp - 0xa74], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0xa74]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d3ac
cmp dword [ebp - 0xa6c], edi
je 0x41d3a0
lea eax, [ebp - 0xa74]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d385
jmp 0x41d3ac
mov eax, dword [ebp - 0xa5c]
mov dword [ebp - 0xa88], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xa88]
lea eax, [ebp - 0x848]
push esi
push eax
call fcn.004251d0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x848]
push eax
push esi
push edi
push str.cur_pid:_u__ppid:_u__file:_s
call fcn.00428250
add esp, 0x18
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
lea ecx, [ebp - 0xa9c]
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.004077f0
mov edx, dword [ebp - 0x834]
mov dword [ebp - 0xa80], 1
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x41d45c
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d452
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41db82
push edx
push ecx
call fcn.004559da
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
push dword [ebp - 0xa9c]
mov byte [ebp - 4], 7
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0xa98]
call fcn.004077f0
mov byte [ebp - 4], 8
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x41db87
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa94], eax
push dword [ebp - 0xa98]
lea eax, [ebp - 0xa94]
mov byte [ebp - 4], 9
push str.ex1_father_:__s_
push eax
call fcn.00408d20
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0xa88], esp
mov dword [eax + 0x24], 0
mov edi, dword [ebp - 0xa94]
push 0
push edi
push 0x51fcc0
mov byte [ebp - 4], 0xa
call fcn.00413b30
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0040a3a0
call fcn.00413aa0
mov ecx, eax
call fcn.004103e0
push eax
call fcn.004174d0
mov ecx, 0x5619d4
call fcn.00405d80
test eax, eax
jne 0x41d556
push str.CheckSingleInstance_failed__exit
call fcn.00428250
add esp, 4
lea ecx, [ebp - 0xa75]
push 0
call fcn.0041b990
push eax
push 0
call fcn.004174e0
mov dword [ebp - 0xa7c], 8
jmp 0x41d92b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004803b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x5617b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.00422320
lea edx, [ebp - 0x420]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea ecx, [ebp - 0xa75]
call fcn.0041bb50
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call fcn.00413b30
mov ecx, eax
call fcn.0040a6d0
call fcn.00422320
mov esi, eax
push esi
mov ecx, dword [esi]
call dword [ecx]
mov dword [ebp - 0xa7c], eax
test eax, eax
je 0x41d733
push eax
push str.pre_init_check_failed__ret___d
call fcn.00428250
add esp, 8
mov byte [ebp - 4], 0xb
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x41db91
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0xa80], 3
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0xa7c]
mov dword [ebp - 0xa88], esi
sub eax, 0xa
je 0x41d65d
sub eax, 1
jne 0x41d699
lea ecx, [ebp - 0xa75]
call fcn.0041bc30
mov edx, eax
test edx, edx
jne 0x41d647
xor ecx, ecx
jmp 0x41d686
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d650
jmp 0x41d682
lea ecx, [ebp - 0xa75]
call fcn.0041bd10
mov edx, eax
test edx, edx
jne 0x41d672
xor ecx, ecx
jmp 0x41d686
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d677
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa88]
call fcn.0040a770
mov esi, dword [ebp - 0xa88]
push 0
push esi
push 0
call fcn.004174e0
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41d6be
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x41db9b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa80], eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0xa80]
mov byte [ebp - 4], 0xc
push str.720260B5_154E_483f_A485_0B46C3D6C50D
push str._sPreInitCheck:_d
push eax
call fcn.00408d20
add esp, 0x10
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d92b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d92b
mov eax, dword [0x561c04]
test al, 1
jne 0x41d74e
or eax, 1
mov dword [0x561c00], 0
mov dword [0x561c04], eax
mov byte [ebp - 0xa75], 0
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0xd
push eax
call fcn.00449387
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa8c], eax
lea eax, [ebp - 0xa75]
mov dword [ebp - 0xa88], eax
lea eax, [ebp - 0xa8c]
push eax
push 0x41b190
push 0x561c00
call fcn.00449dc9
add esp, 0x10
test eax, eax
je 0x41db5f
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0xf
push eax
call fcn.004493c1
mov eax, dword [0x561c28]
add esp, 4
test al, 1
jne 0x41d7cc
or eax, 1
mov dword [0x561c24], 0
mov dword [0x561c28], eax
mov byte [ebp - 0xa75], 0
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0x12
push eax
call fcn.00449387
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa8c], eax
lea eax, [ebp - 0xa75]
mov dword [ebp - 0xa88], eax
lea eax, [ebp - 0xa8c]
push eax
push 0x41b0d0
push 0x561c24
call fcn.00449dc9
add esp, 0x10
test eax, eax
je 0x41db42
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0x14
push eax
call fcn.004493c1
mov eax, dword [esi]
add esp, 4
mov byte [ebp - 4], 9
push 0x561c2c
push 0x561c08
push 0xd1
push dword [0x5617b4]
push esi
call dword [eax + 4]
test eax, eax
jne 0x41d90e
push str.init_config_failed__exit
call fcn.00428250
add esp, 4
lea ecx, [ebp - 0xa75]
push 4
call fcn.0041bee0
push eax
push 0
call fcn.004174e0
cmp eax, 6
jne 0x41d89c
push 1
push 0
push 0
lea ecx, [ebp - 0xa75]
call fcn.0041bfc0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x41dba5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa80], eax
push str.720260B5_154E_483f_A485_0B46C3D6C50D
lea eax, [ebp - 0xa80]
mov byte [ebp - 4], 0x17
push str._sInitConfigFaile
push eax
call fcn.00408d20
add esp, 0xc
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov dword [ebp - 0xa7c], 9
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d92b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d92b
push dword [ebp + 0x14]
push dword [ebp - 0xaa0]
push dword [ebp - 0xa90]
call fcn.0041f180
add esp, 0xc
mov dword [ebp - 0xa7c], eax
mov ecx, 0x5619d4
call fcn.004063b0
mov ecx, dword [0x561a48]
test cl, 1
jne 0x41d968
or ecx, 1
mov dword [0x561a48], ecx
mov ecx, 0x561a44
mov byte [ebp - 4], 0x18
call fcn.0041a800
push 0x519f20
call fcn.00455dd5
add esp, 4
mov byte [ebp - 4], 9
mov ecx, 0x561a44
call fcn.0041ac70
call fcn.0041a850
mov ecx, eax
call fcn.00454900
call fcn.004225d0
mov eax, dword [0x5617b0]
add eax, 0x10
push eax
mov dword [ebp - 0xa90], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5619d0]
test esi, esi
je 0x41d9ea
cmp dword [esi + 4], 0
jle 0x41d9b8
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x5619d0]
test esi, esi
je 0x41d9ea
mov eax, dword [esi]
test eax, eax
je 0x41d9d1
push eax
call fcn.004b26fb
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004559da
add esp, 8
push dword [ebp - 0xa90]
mov dword [0x5619d0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x5619cc]
test esi, esi
je 0x41da48
mov eax, dword [esi]
test eax, eax
je 0x41da1f
push eax
call fcn.004b26fb
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41da36
push eax
call fcn.004b26fb
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004559da
add esp, 8
mov esi, dword [0x5619c4]
test esi, esi
je 0x41da7a
cmp dword [esi], 0
je 0x41da7a
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41da64
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x41da57
mov esi, dword [0x55ad70]
mov ecx, dword [0x55ad74]
cmp esi, ecx
jae 0x41daaa
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x41daa3
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x55ad74]
add esi, 4
cmp esi, ecx
jb 0x41da90
mov ecx, 0x561998
call fcn.0041f590
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 8
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41dad5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa98]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41daf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa9c]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41db15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xaa4]
call fcn.00405260
mov eax, dword [ebp - 0xa7c]
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.00455dea
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0x15
push eax
call fcn.00449403
add esp, 4
mov byte [ebp - 4], 0x13
test al, al
je 0x41dbc5
jmp 0x41dbaf
lea eax, [ebp - 0xa84]
mov byte [ebp - 4], 0x10
push eax
call fcn.00449403
add esp, 4
mov byte [ebp - 4], 0xe
jmp 0x41db59
push 0x80004005
call fcn.00403cd0
call fcn.00489cd4
push 0x80004005
call fcn.00403cd0
push 0x80004005
call fcn.00403cd0
push 0x80004005
call fcn.00403cd0
push 0x80004005
call fcn.00403cd0
sub esp, 8
lea eax, [ebp - 0xa84]
mov ecx, esp
push eax
call fcn.004057f0
call fcn.004064f0
call fcn.00449ec0
int3