Function at 0x408550
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x437348]
push ebx
mov dword [esp + 4], eax
mov eax, dword [0x43d848]
push ebp
mov ebp, ecx
push esi
cmp eax, 3
push edi
mov dword [esp + 0x18], ebp
jne 0x408581
test byte [0x43d84c], 8
jne 0x408594
jmp 0x408786
cmp eax, 5
je 0x408594
cmp eax, 6
je 0x408594
cmp eax, 2
jne 0x408786
lea esi, [ebp + 0x5ba]
test esi, esi
jne 0x4085a8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
jmp 0x4085b1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00402510
lea ecx, [esp + 0x10]
call fcn.00409b40
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
mov edx, str.update
test edx, edx
je 0x408888
push edx
call edi
mov ebx, eax
test ebx, ebx
je 0x408888
mov eax, str.RsConfig.cfg
test eax, eax
jne 0x4085f9
mov dword [esp + 0x14], eax
jmp 0x408604
push str.RsConfig.cfg
call edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x408770
push str.update
push esi
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40863f
lea esi, [eax + ebx]
push str.update
push esi
inc edi
call fcn.0042a63f
add esp, 8
test eax, eax
jne 0x408629
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x408617
test edi, edi
jle 0x408884
lea ecx, [esp + 0x10]
call fcn.00409b40
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x20], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x28], ebp
cmp eax, ebp
jl 0x408686
cmp dword [esi - 0xc], 1
jle 0x4086c2
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
call fcn.004023a0
test eax, eax
je 0x408884
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409b10
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x24], eax
jae 0x408769
push str.update
push esi
call fcn.0042a63f
mov edi, eax
add esp, 8
test edi, edi
je 0x40874e
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0042a050
mov ecx, esi
mov esi, str.RsConfig.cfg
mov edx, ecx
push str.update
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x34]
add ebp, eax
mov dword [esp + 0x34], ebp
call fcn.0042a63f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4086e7
mov ebp, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x4086d3
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push esi
mov ecx, ebp
call fcn.00408950
mov ebx, eax
test ebx, ebx
jne 0x4088dc
lea esi, [ebp + 0x5ba]
lea ecx, [esp + 0x10]
push esi
push str._sRsConfig.cfg
push ecx
call fcn.004025c0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
push edx
call fcn.00408950
mov ebx, eax
test ebx, ebx
jne 0x4088dc
mov ecx, 0x4f
lea edi, [esp + 0x134]
mov dword [esp + 0x130], eax
mov byte [esp + 0x2c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x30]
push str._s.cfg
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x130]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408878
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x10]
push eax
push esi
push str._s_s
push ecx
call fcn.004025c0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.00409b40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
push 0
push str.virusdb.cfg
lea ecx, [esp + 0x18]
call fcn.00409be0
test eax, eax
jg 0x40885e
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00408950
mov ebx, eax
test ebx, ebx
jne 0x408871
lea ecx, [esp + 0x130]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408809
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x4088dc
test esi, esi
jne 0x408891
xor eax, eax
jmp 0x408898
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
jmp 0x408774
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00402510
lea ecx, [esp + 0x10]
call fcn.00409b40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
push str.RsConfig.cfg
push str.update
lea ecx, [esp + 0x18]
call fcn.00409c20
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00408950
mov ebx, eax
test ebx, ebx
je 0x408907
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add ebp, 0xace
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40890b
mov edx, dword [esp + 0x10]
mov eax, dword [0x43734c]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x408935
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408935
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x260
ret