Function at 0x406ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409580
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], esi
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov dword [esp + 0x4c], 0
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x4c], 1
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x4c], 2
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x4c], 3
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x54]
push edi
push 0
push 0x610
mov byte [esp + 0x58], 4
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x40708c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x4c], 5
call edx
add eax, 0x10
mov dword [esp + 0x54], eax
push esi
push edi
lea eax, [esp + 0x5c]
push str.proid:_d_error:_d
mov bl, 6
push eax
mov byte [esp + 0x5c], bl
call fcn.004060a0
add esp, 0x10
push 0x13
push str.OpenProcess_failed_
lea ecx, [esp + 0x1c]
call fcn.00401630
push 0x40a998
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00403870
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 7
call fcn.00405440
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40704d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407448
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.00406750
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
call fcn.00403950
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
add esi, 0x2c
push ecx
mov ecx, esi
call fcn.004051f0
mov edi, dword [eax]
mov ebx, dword [esi + 0x18]
mov ebp, dword [eax + 4]
mov esi, dword [esi]
test edi, edi
je 0x4070cd
cmp edi, esi
je 0x4070d7
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
jmp 0x4070dd
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, ebx
je 0x407424
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esp + 0x28], eax
test edi, edi
jne 0x40711f
call esi
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x407103
call esi
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403950
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jge 0x407123
or esi, 0xffffffff
jmp 0x407141
mov eax, dword [edi]
jmp 0x4070fc
push 0x40a994
push ebx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x40713b
or esi, 0xffffffff
jmp 0x407141
sub eax, ebx
sar eax, 1
mov esi, eax
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.00404880
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 8
call fcn.00403950
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.004047f0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 9
call fcn.00403950
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4071cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCR90.dll__wtoi]
push ecx
call ebx
add esp, 4
mov dword [esp + 0x14], eax
test edi, edi
jne 0x407393
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x4071fc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x10]
mov esi, dword [edx - 0xc]
test edi, edi
jne 0x40739a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x40721d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add esi, 0xfffffffe
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404880
mov eax, dword [eax]
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407258
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov byte [esp + 0x4c], 0xa
test edi, edi
jne 0x4073a1
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x40728d
call ebx
test edi, edi
jne 0x4073a8
call ebx
cmp ebp, dword [edi + 0x18]
jne 0x40729e
call ebx
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
push esi
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push str.m_cGetIniFileInfoMap:Path:_s_Key:_s_Value:_s_PriorityClass:_d_PriorityClassIniFile:_d
push ecx
call fcn.004060a0
add esp, 0x1c
cmp edi, esi
je 0x4073ff
cmp dword [esp + 0x14], 1
jne 0x4073ff
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x4c], 0xb
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push esi
mov bl, 0xc
push ecx
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test eax, eax
jne 0x4073af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x54]
push eax
push edx
lea eax, [esp + 0x30]
push str.ProcessId:_d_Error:_d
push eax
call fcn.004060a0
add esp, 0x10
push str.Set_Process_Priority_Class_failed_
lea ecx, [esp + 0x18]
call fcn.00401840
push 0x40a998
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00403870
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0xd
call fcn.004064a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.004010e0
mov eax, dword [esp + 0x14]
push eax
mov ecx, 0x40d4ec
call fcn.00401950
jmp 0x4073ed
mov eax, dword [edi]
jmp 0x4071f1
mov eax, dword [edi]
jmp 0x407212
mov eax, dword [edi]
jmp 0x407286
mov edi, dword [edi]
jmp 0x407297
mov esi, dword [esp + 0x54]
push esi
lea ecx, [esp + 0x18]
push str.ProcessId:_d_Set_Priority_Class_success__r_n
push ecx
call fcn.004060a0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
mov ecx, 0x40d4ec
call fcn.00401950
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], esi
call fcn.004060d0
mov dword [eax], 1
lea ecx, [esp + 0x28]
call fcn.004010e0
lea ecx, [esp + 0x14]
call fcn.004010e0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407479
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40749e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x4c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4