Function at 0x415810
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53e7c2
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x591a60]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x591a60]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
call fcn.004199ce
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415870
push 0x80004005
call fcn.00401570
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x184], 0
call fcn.00403ec0
push str.Config
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x190], 1
call fcn.00416740
add esp, 0x10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 2
call fcn.004038a0
mov byte [esp + 0x180], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415912
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push 0x56a1ae
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.00403e00
push 0x56a1ae
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call fcn.00403e00
push 0xffffffffffffffff
lea ecx, [ebx + 0x594]
push 0
mov byte [esp + 0x188], 4
call fcn.00427547
cmp esi, 0xffffffff
je 0x415a92
lea esp, [esp]
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415977
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ce0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 3
jle 0x415a71
mov eax, dword [eax - 0xc]
push 3
add eax, 0xfffffffd
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00416490
mov byte [esp + 0x180], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x415a17
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x415a09
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x415a09
push eax
call fcn.00403830
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4159fc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x415a17
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00403ce0
mov byte [esp + 0x180], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415a3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0x56bd64
push ecx
call fcn.005174c5
add esp, 8
test eax, eax
sete al
test al, al
je 0x415a71
mov eax, dword [ebx + 0x59c]
lea ecx, [ebx + 0x594]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00427847
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415970
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x415aa2
push 0
push 0x56bd68
push 0
mov ecx, ebx
call fcn.0041dffd
mov eax, dword [ebx + 0x59c]
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
test eax, eax
jle 0x415b63
lea ebx, [ebx]
test edi, edi
js 0x415c1d
cmp edi, dword [ebx + 0x59c]
lea eax, [ebx + 0x594]
jge 0x415c1d
mov esi, dword [eax + 4]
lea ebx, [edi*4]
mov eax, dword [esi + ebx]
add esi, ebx
cmp dword [eax - 4], 1
jle 0x415afa
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, esi
call fcn.00401400
mov esi, dword [esi]
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x540]
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, dword [esi + 0x59c]
jge 0x415c1d
mov ecx, dword [esi + 0x200]
mov eax, dword [esi + 0x598]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x415866
mov eax, dword [eax + ebx]
push ecx
push eax
call fcn.005174c5
add esp, 8
test eax, eax
sete al
test al, al
je 0x415b56
mov dword [esp + 0x10], edi
inc edi
mov ebx, esi
cmp edi, dword [esp + 0x28]
jl 0x415ac0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x540]
push 0
push eax
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x180], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415ba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415bcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.005162b5
mov esp, ebp
pop ebp
ret
call fcn.00419890
int3