Function at 0x479df0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54b3ed
push eax
mov eax, 0x1864
mov dword fs:[0], esp
call fcn.00514210
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], ecx
push eax
push 0x1000
lea eax, [ebp - 0x1870]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
mov edx, dword [ebp - 0x40]
xor edi, edi
xor ecx, ecx
shr edx, 2
xor eax, eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x3c], ecx
test edx, edx
je 0x47a059
lea edi, [ebp - 0x1870]
mov dword [ebp - 0x14], edi
push dword [edi]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x400
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 1
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x47a02b
xor eax, eax
mov dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x70], eax
mov word [ebp - 0x72], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479eb3
sub ecx, edx
lea eax, [ebp - 0x870]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.0041ffd0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x6c
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], ecx
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x44], edx
jb 0x479ef0
mov ecx, dword [ecx]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x5c], 8
lea edi, [ebp - 0x70]
mov eax, dword [ebp - 0x70]
cmovae edi, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], edi
cmp edx, eax
ja 0x479fea
test edx, edx
je 0x479fc1
movzx ecx, word [ecx]
sub eax, edx
inc eax
mov dword [ebp - 0x18], ecx
lea edx, [edi + eax*2]
mov eax, edi
mov dword [ebp - 0x4c], edx
sub edx, eax
movzx edi, cx
sar edx, 1
mov ecx, 0
mov dword [ebp - 0x20], ecx
je 0x479f59
movzx ecx, word [eax]
cmp cx, di
je 0x479f52
cmp edx, 1
je 0x479f56
movzx ecx, word [eax + 2]
add eax, 2
dec edx
cmp cx, di
jne 0x479f40
mov ecx, eax
jmp 0x479f59
mov ecx, dword [ebp - 0x20]
mov eax, ecx
test eax, eax
je 0x479fea
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x20], ecx
movzx ecx, word [eax]
movzx edx, dx
cmp cx, dx
jb 0x479fa9
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
sub dword [ebp - 0x28], esi
cmp cx, dx
mov esi, dword [ebp - 0x48]
ja 0x479fa9
cmp edi, 1
je 0x479fb7
mov edx, dword [ebp - 0x20]
dec edi
mov ecx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x20], edx
movzx ecx, word [edx + ecx]
movzx edx, word [edx]
cmp cx, dx
jae 0x479f89
mov ecx, dword [ebp - 0x18]
add eax, 2
mov edx, dword [ebp - 0x4c]
jmp 0x479f27
sub eax, dword [ebp - 0x50]
sar eax, 1
cmp eax, 0xffffffff
je 0x479fea
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x2c]
je 0x479fd8
mov eax, dword [edi]
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x34], ecx
jmp 0x479fed
push edi
push ecx
lea ecx, [ebp - 0x38]
call fcn.004423b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x479fed
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x47a02b
mov edx, dword [ebp - 0x54]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47a021
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a0cf
push ecx
push edx
call fcn.004b9160
add esp, 8
mov byte [ebp - 4], 0
test esi, esi
je 0x47a03a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
add edi, 4
inc eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x58]
jb 0x479e61
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
mov esi, edi
mov byte [ebp - 0xd], 0
mov byte [ecx + 0x68], 0
cmp esi, eax
je 0x47a08c
mov edi, dword [ebp - 0x34]
nop dword [eax]
push dword [esi]
call fcn.0047a0e0
mov ecx, dword [ebp - 0x1c]
add esi, 4
cmp esi, edi
jne 0x47a070
mov edi, dword [ebp - 0x18]
mov eax, ecx
mov al, byte [eax + 0x68]
mov byte [ebp - 0xd], al
test edi, edi
je 0x47a0bc
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47a0b2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a0cf
push ecx
push edi
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0051bb5f
int3