Function at 0x4004df20
Capabilities:
Enumerate process modules
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4007443b
push eax
mov eax, 0x3708
mov dword fs:[0], esp
call fcn.4006ce90
push ebx
push esi
push edi
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.400269ed
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x5c], 0x3f800000
push eax
mov dword [ebp - 0x6c], 0
call fcn.40003160
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x60], 8
mov byte [ebp - 4], 3
mov eax, dword [0x40085aec]
mov dword [ebp - 0x24], eax
mov ax, word [0x40085af0]
push 0x2000
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x3710]
push 0
push eax
call fcn.40054740
mov ecx, 0xd
lea edi, [ebp - 0xf8]
mov esi, 0x40085af4
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsw word es:[edi], word [esi]
mov ax, word [ebp + ebx*2 - 0xf8]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x3710]
push 0x1000
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4004e316
xor eax, eax
xor ecx, ecx
mov edx, 7
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov word [ebp - 0x54], ax
cmp word [ebp - 0x24], ax
jne 0x4004e037
xor esi, esi
jmp 0x4004e053
lea eax, [ebp - 0x24]
push eax
call fcn.40054188
mov edx, dword [ebp - 0x40]
add esp, 4
mov ecx, dword [ebp - 0x44]
mov esi, eax
mov eax, dword [ebp - 0x54]
cmp edx, 8
jae 0x4004e056
lea eax, [ebp - 0x54]
lea edi, [ebp - 0x24]
cmp edi, eax
mov edi, dword [ebp - 0x54]
jb 0x4004e095
cmp edx, 8
lea eax, [ebp - 0x54]
cmovae eax, edi
lea edi, [ebp - 0x24]
lea eax, [eax + ecx*2]
cmp eax, edi
mov edi, dword [ebp - 0x54]
jbe 0x4004e095
cmp edx, 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x24]
cmovae ecx, edi
sub eax, ecx
push esi
sar eax, 1
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, eax
call fcn.400070ab
jmp 0x4004e10b
cmp esi, 0x7ffffffe
ja 0x4004e368
cmp edx, esi
jae 0x4004e0b1
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.4000795f
jmp 0x4004e0c6
test esi, esi
jne 0x4004e0ce
cmp edx, 8
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x54]
cmovae eax, edi
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x54]
test esi, esi
mov edx, dword [ebp - 0x40]
setne al
test al, al
je 0x4004e10b
cmp edx, 8
lea ecx, [ebp - 0x54]
cmovae ecx, edi
test esi, esi
je 0x4004e0f9
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.40053020
mov edx, dword [ebp - 0x40]
add esp, 0xc
mov edi, dword [ebp - 0x54]
cmp edx, 8
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x54]
cmovae eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
mov byte [ebp - 4], 4
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x3c], ax
mov edx, 7
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
cmp word [ebp - 0x3710], ax
jne 0x4004e12f
xor esi, esi
jmp 0x4004e14e
lea eax, [ebp - 0x3710]
push eax
call fcn.40054188
mov edx, dword [ebp - 0x28]
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [ebp - 0x3c]
cmp edx, 8
jae 0x4004e151
lea eax, [ebp - 0x3c]
lea edi, [ebp - 0x3710]
cmp edi, eax
mov edi, dword [ebp - 0x3c]
jb 0x4004e199
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, edi
lea edi, [ebp - 0x3710]
lea eax, [eax + ecx*2]
cmp eax, edi
mov edi, dword [ebp - 0x3c]
jbe 0x4004e199
cmp edx, 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x3710]
cmovae ecx, edi
sub eax, ecx
push esi
sar eax, 1
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, eax
call fcn.400070ab
jmp 0x4004e212
cmp esi, 0x7ffffffe
ja 0x4004e368
cmp edx, esi
jae 0x4004e1b5
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.4000795f
jmp 0x4004e1ca
test esi, esi
jne 0x4004e1d2
cmp edx, 8
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x3c]
cmovae eax, edi
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x3c]
test esi, esi
mov edx, dword [ebp - 0x28]
setne al
test al, al
je 0x4004e212
cmp edx, 8
lea ecx, [ebp - 0x3c]
cmovae ecx, edi
test esi, esi
je 0x4004e200
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x3710]
push eax
push ecx
call fcn.40053020
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x3c]
cmp edx, 8
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x3c]
cmovae eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0xc0]
call fcn.40027c89
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x78]
push eax
mov edi, dword [ecx]
push dword [edi + 4]
push edi
call fcn.40029bca
mov edx, dword [ebp - 0x74]
mov ecx, 0x4924923
sub ecx, edx
mov esi, eax
cmp ecx, 1
jb 0x4004e35e
inc edx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], edx
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.40028c82
cmp dword [ebp - 0x94], 8
jb 0x4004e28b
push dword [ebp - 0xa8]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [ebp - 0x94], 7
cmp dword [ebp - 0xac], 8
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
jb 0x4004e2bf
push dword [ebp - 0xc0]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [ebp - 0xac], 7
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
jb 0x4004e2ed
push dword [ebp - 0x3c]
call fcn.40053016
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x40], 8
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x4004e316
push dword [ebp - 0x54]
call fcn.40053016
add esp, 4
inc ebx
cmp ebx, 0x1b
jb 0x4004dff0
push 0x1000
lea eax, [ebp - 0x1710]
push 0
push eax
call fcn.40054740
add esp, 0xc
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x1710]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4004e372
xor bl, bl
jmp 0x4004e6da
push str.list_T__too_long
call fcn.4005237f
push str.string_too_long
call fcn.4005237f
mov esi, dword [ebp - 0x80]
xor ebx, ebx
shr esi, 2
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x1c], ebx
test esi, esi
je 0x4004e6d8
jmp 0x4004e390
push dword [ebp + ebx*4 - 0x1710]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4004e6cc
push 0x208
lea eax, [ebp - 0x300]
push 0
push eax
call fcn.40054740
add esp, 0xc
lea eax, [ebp - 0x300]
push 0x104
push eax
push dword [ebp - 0x58]
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4004e6c3
call fcn.40001ce1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je case.0x4004e5e8.1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x4004e4da
movzx esi, ax
mov ecx, esi
call fcn.400045cc
mov ebx, eax
test ebx, ebx
je 0x4004e4f6
mov ecx, esi
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4004e4f6
push esi
mov edx, eax
mov ecx, ebx
call fcn.40004544
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4004e4f6
movzx esi, word [ebx]
test esi, esi
js case.0x4004e5e8.22
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4004e486
push esi
lea ecx, [ebp - 0x10]
call fcn.40007396
mov edi, dword [ebp - 0x10]
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xffffffff
jne 0x4004e4a3
test ebx, ebx
jne 0x4004e499
xor eax, eax
jmp 0x4004e4a2
push ebx
call fcn.40054188
add esp, 4
inc eax
push eax
push ebx
push esi
push edi
call fcn.40054dda
add esp, 0x10
cmp eax, 0x50
ja case.0x4004e5e8.1
movzx eax, byte [eax + 0x4004e814]
jmp dword [eax*4 + 0x4004e804]
cmp esi, dword [edi - 8]
jg case.0x4004e5e8.22
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x4004e4f6
push eax
call fcn.40054188
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.40007835
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 8
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebx]
cmp esi, ebx
je 0x4004e624
push dword [esi + 0x18]
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x8c]
push eax
call fcn.4000d7d4
cmp dword [esi + 0x1c], 8
mov edx, eax
jb 0x4004e52c
mov ecx, dword [esi + 8]
jmp 0x4004e52f
lea ecx, [esi + 8]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je case.0x4004e5e8.1
push ecx
push dword [edx]
call fcn.400550d7
mov edx, dword [ebp - 0x8c]
add esp, 8
test eax, eax
sete byte [ebp - 0x11]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4004e56f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x11], 0
jne 0x4004e580
mov esi, dword [esi]
cmp esi, ebx
jne 0x4004e507
jmp 0x4004e624
mov esi, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [edi - 0xc]
mov ebx, dword [esi + 0x10]
test ebx, ebx
cmovs ebx, eax
mov eax, 0x7fffffff
sub eax, ebx
js 0x4004e7d9
cmp ebx, ecx
cmovg ebx, ecx
test ebx, ebx
jle 0x4004e60c
sub ecx, ebx
cmp dword [edi - 4], 1
mov dword [ebp - 0x18], ecx
jle 0x4004e5c2
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.400078c1
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx*2 + 2]
push ecx
lea eax, [edi + ebx*2]
push eax
push ecx
push edi
call fcn.400549f5
add esp, 0x10
cmp eax, 0x50
ja case.0x4004e5e8.1
movzx eax, byte [eax + 0x4004e878]
jmp dword [eax*4 + 0x4004e868]
mov eax, dword [ebp - 0x18]
test eax, eax
js case.0x4004e5e8.22
cmp eax, dword [edi - 8]
jg case.0x4004e5e8.22
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x4004e617
mov esi, dword [esi]
push esi
push ecx
lea ecx, [ebp - 0x10]
call fcn.4004e9f0
mov edi, dword [ebp - 0x10]
push 0x410
lea eax, [ebp - 0x710]
push 0
push eax
call fcn.40054740
add esp, 0xc
lea eax, [ebp - 0x710]
push 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x710]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x90], edi
mov eax, dword [ebp + ebx*4 - 0x1710]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
test ecx, ecx
je 0x4004e7fd
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x90]
push edx
mov eax, dword [eax + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x84]
push edx
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
test al, al
lea eax, [edi + 0xc]
je 0x4004e7e3
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4004e6c0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x7c]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
jb 0x4004e390
mov bl, 1
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4004e6ff
push eax
call fcn.40053016
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x78]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], 0
cmp esi, eax
je 0x4004e77e
lea ebx, [ebx]
cmp dword [esi + 0x34], 8
mov edi, dword [esi]
jb 0x4004e733
push dword [esi + 0x20]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], ax
cmp dword [esi + 0x1c], 8
jb 0x4004e758
push dword [esi + 8]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], ax
call fcn.40053016
mov eax, dword [ebp - 0x78]
add esp, 4
mov esi, edi
cmp edi, eax
jne 0x4004e720
push eax
call fcn.40053016
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4004e7a6
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.40001ad1
push 0x8007000e
call fcn.40001ad1
push 0x80004005
call fcn.40001ad1
push 0x80070216
call fcn.40001ad1
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4004e6d8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4004e6d8
call fcn.4005232d
mov edi, edi
invalid