Function at 0x401270
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40523f
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [section..data]
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 ebx, ecx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x470], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x464], 1
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push edx
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x464], 1
mov dword [ebp - 0x458], 0x428
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x460], esi
cmp esi, 0xffffffff
je 0x401479
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401472
nop dword [eax]
push 0x406238
lea ecx, [ebp - 0x30]
call fcn.00402e10
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401360
mov eax, dword [ebp - 0x1c]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x40139f
cmp eax, 7
mov dword [ebp - 0x20], ecx
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x438]
lea edi, [ebp - 0x30]
cmova edi, dword [ebp - 0x30]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4013bc
lea eax, [ebp - 0x438]
mov byte [ebp - 0x468], 0
push eax
push dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004036e0
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401418
cmp dword [ebp - 0x1c], 7
lea ebx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmova ebx, dword [ebp - 0x30]
cmp eax, 0xa
jb 0x401412
add eax, 0xfffffff7
lea ecx, [ebx + eax*2]
mov eax, ebx
mov dword [ebp - 0x46c], ecx
sub ecx, eax
sar ecx, 1
je 0x401412
nop dword [eax]
cmp word [eax], 0x47
je 0x401497
add eax, 2
sub ecx, 1
jne 0x401400
mov ebx, dword [ebp - 0x45c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x401456
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40144c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401517
push ecx
push edx
call fcn.004041cb
add esp, 8
mov esi, dword [ebp - 0x460]
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x401330
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
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.0040418d
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x401412
mov edx, str.GrandChase
mov edi, eax
mov esi, 0xa
sub edi, edx
nop dword [eax]
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x4014fc
add edx, 2
sub esi, 1
jne 0x4014b0
sub eax, ebx
mov ebx, dword [ebp - 0x45c]
sar eax, 1
cmp eax, 0xffffffff
je 0x401418
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x30]
push eax
cmp esi, dword [ebx + 8]
je 0x40150a
mov ecx, esi
call fcn.00402fa0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
add dword [ebx + 4], 0x20
jmp 0x401418
mov ecx, dword [ebp - 0x46c]
add eax, 2
jmp 0x4013f3
push esi
mov ecx, ebx
call fcn.00403da0
jmp 0x401418
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3