Function at 0x414570
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6d94
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
cmp word [edx], ax
jne 0x4145ca
xor ecx, ecx
jmp 0x4145df
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4145d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00404db0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [edi], ax
jne 0x414619
xor ecx, ecx
jmp 0x41462f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414620
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x260]
call fcn.00404db0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.004209f0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00421d20
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x278]
call fcn.00420740
mov esi, eax
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x4146c4
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x41469b
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x24c], 7
push esi
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00404fd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x4146e6
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00405130
push 3
push 0x6259e4
lea ecx, [ebp - 0x2a8]
call fcn.0040d860
cmp dword [ebp - 0x294], 8
lea ecx, [ebp - 0x510]
lea eax, [ebp - 0x2a8]
cmovae eax, dword [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414b76
lea eax, [ebp - 0x510]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x414b76
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x4e4], ax
je 0x41477f
lea eax, [ebp - 0x4e4]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414770
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404db0
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.004209f0
mov esi, eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x41487c
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x414807
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x1000
jb 0x4147fe
test cl, 0x1f
jne 0x414b04
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414b04
sub ecx, eax
cmp ecx, 4
jb 0x414b04
cmp ecx, 0x23
ja 0x414b04
mov ecx, eax
push ecx
call fcn.00579ec4
add esp, 4
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
cmp dword [esi + 0x14], 0x10
jae 0x414843
mov eax, dword [esi + 0x10]
add eax, 1
je 0x414851
push eax
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0057e9c0
add esp, 0xc
jmp 0x414851
mov eax, dword [esi]
mov dword [ebp - 0x248], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x234], eax
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x414879
mov esi, dword [esi]
mov byte [esi], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2ac]
cmp eax, 0x10
jb 0x4148cc
mov ecx, dword [ebp - 0x2c0]
inc eax
cmp eax, 0x1000
jb 0x4148c3
test cl, 0x1f
jne 0x414b04
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414b04
sub ecx, eax
cmp ecx, 4
jb 0x414b04
cmp ecx, 0x23
ja 0x414b04
mov ecx, eax
push ecx
call fcn.00579ec4
add esp, 4
lea ecx, [ebp - 0x248]
call fcn.00421d20
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x2c0]
call fcn.00420740
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x41493b
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x414912
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00404fd0
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x414959
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00405130
cmp word [ebp - 0x4e4], 0x2e
jne 0x41498e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x414725
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405130
jmp 0x414725
mov ax, word [ebp - 0x4e2]
test ax, ax
je 0x414963
cmp ax, 0x2e
jne 0x4149ae
cmp word [ebp - 0x4e0], 0
je 0x414af0
test byte [ebp - 0x510], 0x10
jne 0x414963
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
push 0x208
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x623bc4
push eax
call fcn.0040a360
add esp, 0xc
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x2c0]
cmovae edx, dword [ebp - 0x230]
call fcn.0041b550
push eax
lea ecx, [ebp - 0x290]
call fcn.00404a10
lea ecx, [ebp - 0x2c0]
call fcn.00403d40
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov ecx, str..lnk
cmovae eax, dword [ebp - 0x290]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414a8b
test dx, dx
je 0x414a87
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414a8b
add eax, 4
add ecx, 4
test dx, dx
jne 0x414a65
xor eax, eax
jmp 0x414a90
sbb eax, eax
or eax, 1
test eax, eax
jne 0x414ae5
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x278]
call fcn.0041b1b0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x278]
cmovae edx, dword [ebp - 0x260]
cmp dword [ebp - 0x264], 8
cmovae ecx, dword [ebp - 0x278]
call fcn.00422ba0
test eax, eax
jne 0x414b09
lea ecx, [ebp - 0x278]
call fcn.00403d40
lea ecx, [ebp - 0x290]
call fcn.00403d40
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00403d40
jmp 0x414725
call fcn.005864c3
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
nop dword [eax]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x414b46
test cx, cx
je 0x414b42
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x414b46
add edi, 4
add eax, 4
test cx, cx
jne 0x414b20
xor eax, eax
jmp 0x414b4b
sbb eax, eax
or eax, 1
xor ebx, ebx
lea ecx, [ebp - 0x278]
test eax, eax
setne bl
inc ebx
call fcn.00403d40
lea ecx, [ebp - 0x290]
call fcn.00403d40
lea ecx, [ebp - 0x230]
call fcn.00403d40
jmp 0x414b78
xor ebx, ebx
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x414b96
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00408a70
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
call fcn.00403d40
lea ecx, [ebp - 0x2a8]
call fcn.00403d40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00579ec9
mov esp, ebp
pop ebp
ret 8