Function at 0x405c90
Capabilities:
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42afb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1454
call fcn.00408e70
mov eax, dword [0x437b9c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
push str.http:__files.altn.com_MDaemon_Updates_SpamAssassin
lea eax, [ebp - 0x464]
push 0x437630
push eax
mov dword [ebp - 0x28], edi
call fcn.0040696b
add esp, 0xc
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push ecx
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x464]
push ecx
push edx
mov byte [ebp - 4], 2
call fcn.00428b38
mov eax, dword [0x437b9c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00423cb9
mov esi, eax
push 0x437870
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00423cb9
push eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 5
call fcn.00423ded
push esi
lea ecx, [ebp - 0x18]
mov bl, 6
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.00423ded
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00423d38
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00423c8f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00423c8f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00423c8f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00423c8f
mov esi, 0x84400000
cmp dword [ebp - 0x30], 0x100b
jne 0x405da5
mov esi, 0x84c00000
push 0x400000
push edi
push edi
push edi
push 1
push str.SpamUpdate
lea ecx, [ebp - 0x5c]
call fcn.00428c69
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
push edi
push edi
push edx
push 0x84000000
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 8
call fcn.00428d64
mov ecx, dword [ebp - 0x1c]
push esi
push 0
push 0
push 1
mov edi, eax
push 0
push ecx
push 1
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.0042971b
mov esi, eax
test esi, esi
je 0x405e07
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004298a5
lea edx, [ebp - 0x3c]
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], 4
mov eax, dword [edi + 4]
push edx
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x44], 0x197
jne 0x405e71
lea edx, [ebp - 0x18]
push 0
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x18], 0
call fcn.004298f4
test eax, eax
je 0x405e71
mov eax, dword [ebp - 0x18]
push eax
call fcn.00423953
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
jne 0x405e58
push ebx
call fcn.0042397c
add esp, 4
lea ecx, [ebp - 0x264]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x264]
push 0x5c
push edx
call fcn.00405480
mov eax, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 0x264]
lea edx, [ebp - 0x364]
push eax
push ecx
push str._s_s
push edx
call fcn.0040696b
lea eax, [ebp - 0x364]
push 0x437860
push eax
call fcn.00408e56
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x405eef
mov edx, dword [esi]
lea eax, [ebp - 0x1464]
push 0x1000
push eax
mov ecx, esi
call dword [edx + 0x34]
mov edi, eax
push ebx
test edi, edi
jg 0x405f50
call fcn.0040753e
mov edi, dword [ebp - 0x2c]
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x15c]
push str._s___download_complete__size_was__d._n
push ecx
call fcn.0040696b
add esp, 0x10
lea edx, [ebp - 0x15c]
push edx
push 0x406010
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.00428d0e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00428c24
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00423c8f
jmp 0x405fdc
push 1
lea ecx, [ebp - 0x1464]
push edi
push ecx
call fcn.0040836e
mov eax, dword [ebp - 0x28]
add esp, 0x10
add eax, edi
mov dword [ebp - 0x28], eax
jmp 0x405eca
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00423c8f
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00423c8f
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret