Function at 0x40cfd0
Capabilities:
Create process on windows
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44449f
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x38c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x3a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3b8]
mov esi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3ac], 0
mov eax, dword [esi + 0x9c]
mov ebx, dword [esp + 0x3b4]
xor edi, edi
test eax, eax
jle 0x40d07a
test edi, edi
jl 0x40d0b3
cmp edi, dword [esi + 0x9c]
jge 0x40d0b3
mov ecx, dword [esi + 0x98]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d0a9
push eax
push ebx
call fcn.0042f58c
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40d8f5
add edi, 1
cmp edi, dword [esi + 0x9c]
jl 0x40d036
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0xa0]
cmp ecx, eax
jne 0x40d0f8
mov edx, dword [esi + 0x98]
lea edi, [esp + 0x3b4]
cmp edi, edx
jb 0x40d0c4
lea edi, [edx + eax*4]
lea ebp, [esp + 0x3b4]
cmp ebp, edi
jae 0x40d0c4
push 0x80004005
call fcn.00401520
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
jne 0x40d0cd
lea edi, [eax + 1]
jmp 0x40d0dc
lea edi, [ecx + ecx]
test edi, edi
jl 0x40d12b
cmp edi, 0x1fffffff
ja 0x40d12b
push 4
push edi
push edx
call fcn.0042f324
add esp, 0xc
test eax, eax
je 0x40d12b
mov dword [esi + 0xa0], edi
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
lea edi, [edx + eax*4]
test edi, edi
mov byte [esp + 0x3ac], 1
je 0x40d124
lea eax, [ebx - 0x10]
push eax
call fcn.00403490
add esp, 4
add eax, 0x10
mov dword [edi], eax
add dword [esi + 0x9c], 1
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x44b9af
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3b0], 2
call fcn.00403330
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push 0x2001f
push ebx
push ebx
mov byte [esp + 0x3c4], 3
mov ecx, dword [0x45a554]
mov edx, dword [0x457a90]
push ebx
push ecx
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d196
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push 0x44c4fc
push ecx
call fcn.004033f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
jne 0x40d1c8
push 0x80004005
call fcn.00401520
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add eax, 1
push eax
push esi
push 1
push 0
push str.IR_1
push ebx
call ebp
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push 0x44c4fc
push eax
call fcn.004033f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
jne 0x40d21a
push 0x80004005
call fcn.00401520
push eax
call edi
add eax, 1
push eax
push esi
push 1
push 0
push str.IR_2
push ebx
call ebp
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
lea edx, [esp + 0x18]
push ecx
push 0x44c4fc
push edx
call fcn.004033f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
jne 0x40d264
push 0x80004005
call fcn.00401520
push eax
call edi
add eax, 1
push eax
push esi
push 1
push 0
push str.IR_3
push ebx
call ebp
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
push 0x44c4fc
push ecx
call fcn.004033f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
jne 0x40d2ae
push 0x80004005
call fcn.00401520
push eax
call edi
add eax, 1
push eax
push esi
push 1
push 0
push str.IR_4
push ebx
call ebp
mov esi, dword [esp + 0x3b4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40d2f0
cmp eax, dword [esi]
jne 0x40d2f0
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40d327
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40d309
call fcn.00401670
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042daa5
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
push edi
mov byte [esp + 0x3b0], 4
call fcn.004080d0
mov esi, eax
test esi, esi
jne 0x40d346
xor ecx, ecx
jmp 0x40d35b
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x40d350
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x40d350
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00401760
mov ebp, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x24], esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov dword [esp + 0x28], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d39a
cmp eax, dword [esi]
jne 0x40d39a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d3d1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40d3b3
call fcn.00401670
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.0042daa5
add esp, 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
add edi, 0x10
push ecx
mov dword [eax], edi
call fcn.00405cd0
mov byte [esp + 0x3ac], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x40d440
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d42e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d42e
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d425
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40d440
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401760
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x3ac], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
test ebp, ebp
setne al
test eax, eax
jne 0x40d47d
push 0x80004005
call fcn.00401520
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add eax, 1
push eax
push ebp
push 1
push 0
push 0x44bc7c
push ebx
call esi
mov ecx, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push 0
push 0x44bc80
push ebx
mov dword [esp + 0x38], ecx
call esi
test ebx, ebx
je 0x40d4c9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], 0
push 0x103
lea eax, [esp + 0x19d]
push 0
push eax
mov byte [esp + 0x1a4], 0
call fcn.00431520
push 0x103
lea ecx, [esp + 0x2ad]
push 0
push ecx
mov byte [esp + 0x2b4], 0
call fcn.00431520
push 0x103
lea edx, [esp + 0xb1]
push 0
push edx
mov byte [esp + 0xb8], 0
call fcn.00431520
add esp, 0x24
push 0x104
lea eax, [esp + 0x19c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x2a8]
push edx
lea eax, [esp + 0x1a8]
push eax
call fcn.0042ed33
add esp, 0x14
lea ecx, [esp + 0x29c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403330
lea eax, [esp + 0x94]
mov byte [esp + 0x3ac], 6
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40d580
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx - 0xc]
lea edx, [esp + 0x94]
mov ebx, eax
mov eax, dword [ecx - 8]
mov edi, edx
mov dword [esp + 0x24], edx
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [ebx + ebp]
sub eax, esi
sub edi, ecx
or eax, edx
jge 0x40d5c5
push esi
lea ecx, [esp + 0x18]
call fcn.004015a0
mov ecx, dword [esp + 0x14]
cmp edi, ebp
ja 0x40d5cf
add edi, ecx
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x24]
push ebx
push eax
add ebp, ecx
push ebx
push ebp
call fcn.0042daa5
add esp, 0x10
test esi, esi
jl 0x40d8eb
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d8eb
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov ebp, str.srankingp.exe__au
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [ebx + 0x11]
mov edi, ebp
sub eax, esi
sub edi, ecx
or eax, edx
jge 0x40d633
push esi
lea ecx, [esp + 0x18]
call fcn.004015a0
mov ecx, dword [esp + 0x14]
cmp edi, ebx
ja 0x40d63a
lea ebp, [edi + ecx]
push 0x11
push ebp
add ebx, ecx
push 0x11
push ebx
call fcn.0042daa5
add esp, 0x10
test esi, esi
jl 0x40d8eb
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d8eb
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
push 0x44
lea eax, [esp + 0x54]
push 0
push eax
mov byte [esi + edx], 0
call fcn.00431520
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], 0x44
mov esi, dword [edx - 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
sub ecx, esi
add esp, 0xc
or eax, ecx
jge 0x40d6bb
push esi
lea ecx, [esp + 0x18]
call fcn.004015a0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
mov eax, dword [esp + 0x3b4]
push eax
call fcn.004080d0
test eax, eax
jne 0x40d703
xor ecx, ecx
jmp 0x40d713
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40d708
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x3bc]
call fcn.00401760
mov ebp, dword [esp + 0x3b4]
push ecx
mov dword [esp + 0x24], esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d756
cmp eax, dword [esi]
jne 0x40d756
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d78d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40d76f
call fcn.00401670
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.0042daa5
add esp, 0x10
lea eax, [esp + 0x24]
add edi, 0x10
push eax
mov dword [ebx], edi
call fcn.00405cd0
mov byte [esp + 0x3ac], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x40d801
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d7e9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d7e9
push eax
call fcn.00403490
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d7dd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x3b4], ebp
jmp 0x40d801
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x3bc]
call fcn.00401760
mov ebp, dword [esp + 0x3b4]
mov byte [esp + 0x3ac], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push str.srankingp_u
push 0
call ebx
test eax, eax
jne 0x40d852
push 0x64
call edi
add esi, 1
cmp esi, 0x14
jl 0x40d837
jmp 0x40d85f
mov ebx, dword [esp + 0x2c]
mov ecx, ebp
mov edi, eax
call fcn.0040d950
mov byte [esp + 0x3ac], 4
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 0x40d887
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3ac], 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 0x40d8af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3ac], 2
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 0x40d8d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d8e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
jmp 0x40d8f8
push 0x80070057
call fcn.00401520
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x3ac], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38c]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x39c
ret 8