Function at 0x41d060
Capabilities:
Enumerate process modules
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6057a8
mov eax, dword fs:[0]
push eax
mov eax, 0x169c
call fcn.005d11a0
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1644], esi
mov eax, ecx
mov dword [ebp - 0x1680], eax
mov ecx, dword [ebp + 8]
push eax
push 0
push 0x410
mov dword [ebp - 0x1690], ecx
mov dword [ebp - 0x168c], 0
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x1688], eax
test eax, eax
je 0x41d2d8
lea ecx, [ebp - 0x1660]
push ecx
push 0x1000
lea ecx, [ebp - 0x1640]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41d2cc
xor edi, edi
test dword [ebp - 0x1660], 0xfffffffc
jbe 0x41d2cc
push 0x104
lea eax, [ebp - 0x240]
push eax
push dword [ebp + edi*4 - 0x1640]
push dword [ebp - 0x1688]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x41d2ba
xorps xmm0, xmm0
mov dword [ebp - 0x166c], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x1668], 0
movups xmmword [ebp - 0x167c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d152
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x167c]
call fcn.0040c3f0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41d185
mov eax, dword [esi]
cmp dword [ebp - 0x1668], 8
lea esi, [ebp - 0x167c]
mov ecx, dword [ebp - 0x1644]
cmovae esi, dword [ebp - 0x167c]
mov edx, dword [ebp - 0x166c]
cmp edx, dword [ecx + 0x10]
jne 0x41d2a2
test edx, edx
je 0x41d1d5
sub esi, eax
nop dword [eax]
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x41d2a2
add eax, 2
sub edx, 1
jne 0x41d1c0
mov esi, dword [ebp - 0x1690]
mov ecx, esi
push 0
push 0x65fe6c
call fcn.0040be20
push 0x104
lea eax, [ebp - 0x240]
push eax
push 0
push dword [ebp - 0x1688]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x41d3a1
xorps xmm0, xmm0
mov dword [ebp - 0x164c], eax
movups xmmword [ebp - 0x165c], xmm0
mov dword [ebp - 0x1648], eax
mov dword [ebp - 0x164c], eax
mov dword [ebp - 0x1648], 7
mov word [ebp - 0x165c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push dword [ebp - 0x1680]
movups xmmword [ebp - 0x38], xmm0
push 0x66ea0c
push eax
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x38]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d267
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x165c]
call fcn.0040be20
mov byte [ebp - 4], 2
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x164c]
sub eax, ecx
cmp eax, 8
jb 0x41d566
jmp 0x41d2f5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x167c]
call fcn.0040bd90
mov esi, dword [ebp - 0x1644]
mov eax, dword [ebp - 0x1660]
inc edi
shr eax, 2
cmp edi, eax
jb 0x41d104
push dword [ebp - 0x1688]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1648], 8
lea eax, [ebp - 0x165c]
push ecx
cmovae eax, dword [ebp - 0x165c]
lea ecx, [ebp - 0x16a8]
push eax
push 8
push str.Process
lea eax, [ebp - 0x165c]
push eax
push dword [ebp - 0x1684]
call fcn.004101e0
lea eax, [ebp - 0x16a8]
mov dword [ebp - 0x168c], 1
cmp esi, eax
je 0x41d379
mov ecx, esi
call fcn.0040bd90
movups xmm0, xmmword [ebp - 0x16a8]
xor eax, eax
mov word [ebp - 0x16a8], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1698]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1698], 0
mov dword [ebp - 0x1694], 7
mov eax, 1
mov dword [ebp - 0x168c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x168c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16a8]
call fcn.0040bd90
jmp 0x41d532
lea eax, [ebp - 0x1644]
mov dword [ebp - 0x1644], 0
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41d4a7
push edi
call fcn.0049ce4b
add esp, 4
mov esi, eax
lea eax, [ebp - 0x240]
push esi
push edi
push dword [ebp - 0x1644]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41d49c
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x1664]
push eax
lea eax, [ebp - 0x1680]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x41d49c
mov ecx, dword [ebp - 0x1680]
push 0x664a68
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x640]
push 0x200
push eax
call fcn.0041d950
add esp, 0x18
lea eax, [ebp - 0x1664]
push eax
lea eax, [ebp - 0x1684]
push eax
lea eax, [ebp - 0x640]
push eax
push esi
call edi
test eax, eax
je 0x41d49c
mov edi, dword [ebp - 0x1684]
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41d470
sub edx, ecx
mov ecx, dword [ebp - 0x1690]
sar edx, 1
push edx
push edi
call fcn.0040be20
push 1
push esi
call fcn.005d0cf8
add esp, 8
jmp 0x41d541
push 1
push esi
call fcn.005d0cf8
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x164c], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x1648], 0
movups xmmword [ebp - 0x165c], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d4d0
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x165c]
call fcn.0040c3f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x165c]
cmp dword [ebp - 0x1648], 8
cmovae eax, dword [ebp - 0x165c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41d516
mov ecx, dword [ebp - 0x1690]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040be20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x165c]
call fcn.0040bd90
push dword [ebp - 0x1688]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x167c]
call fcn.0040bd90
mov al, 1
jmp 0x41d2da
call fcn.004084d0
int3