Function at 0x402180
Capabilities:
Enumerate process modules
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [0x435010]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
push edi
push str.By_Absolllute_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xb
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, str.Waiting_for_DindeGDPS_2.2..._n
call fcn.00404610
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push str.DindeGDPS_2.2
push 0
call esi
test eax, eax
jne 0x4021f4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0xfa
call edi
push str.DindeGDPS_2.2
push 0
call esi
test eax, eax
je 0x4021e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x40223c
push 0x431480
call fcn.0040df4c
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Failed_to_attach_to_DindeGDPS_2.2__error
jmp 0x40231d
push dword [esp + 0x10]
mov edx, str.Attached__PID__
push ecx
call fcn.00404610
add esp, 4
mov ecx, eax
call fcn.00402730
mov ecx, eax
call fcn.004048e0
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
push 0x104
lea eax, [esp + 0x52c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x402305
xor esi, esi
test dword [esp + 0x14], 0xfffffffc
jbe 0x402305
nop dword [eax + eax]
push 0x104
lea eax, [esp + 0x424]
lea edi, [esp + 0x1c]
push eax
push dword [edi + esi*4]
lea edi, [edi + esi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x4022f9
lea eax, [esp + 0x420]
lea ecx, [esp + 0x528]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4022f0
test dl, dl
je 0x4022ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4022f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4022d0
xor eax, eax
jmp 0x4022f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402351
mov eax, dword [esp + 0x14]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4022a0
push 0x431480
call fcn.0040df4c
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Could_not_get_base_address__error
push eax
push ecx
call fcn.00404610
add esp, 4
mov ecx, eax
call fcn.00402730
mov ecx, eax
call fcn.004048e0
call fcn.004023f0
mov ecx, dword [esp + 0x634]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004078b9
mov esp, ebp
pop ebp
ret
mov esi, dword [edi]
test esi, esi
je 0x402305
push esi
push ecx
mov edx, str.Base__
call fcn.00404610
add esp, 4
mov ecx, eax
call fcn.00402580
mov ecx, eax
call fcn.004048e0
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x418]
push 0
push 5
push eax
lea eax, [esi + 0x120170]
mov dword [esp + 0x424], 0x8c201b0
push eax
push ebx
mov byte [esp + 0x430], 0
call edi
test eax, eax
je 0x4023d0
push 0
push 5
lea eax, [esp + 0x420]
push eax
lea eax, [esi + 0x120670]
push eax
push ebx
call edi
test eax, eax
je 0x4023d0
mov edx, str._nfunny_unlock_done___n
call fcn.00404610
jmp 0x402335
push 0x431480
call fcn.0040df4c
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.oh_no_it_failed__here:__error
jmp 0x40231d