Function at 0x403f00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40762d
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x40d00c]
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 dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 5
xor eax, eax
mov dword [ebp - 0x30], 7
xor edi, edi
mov word [ebp - 0x44], ax
push str.x64_
mov dword [ebp - 0x34], edi
call fcn.00404bf0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x34]
test eax, eax
jg 0x403f6b
xor bl, bl
jmp 0x404240
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00404900
sub esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x5c
lea ecx, [ebp - 0x28]
push eax
call fcn.00404b50
cmp eax, 0xffffffff
jne 0x403f9f
xor bl, bl
jmp 0x40421a
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404900
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x403fe5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403fc8
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404e10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x403ffb
inc eax
push eax
push dword [ebp - 0x74]
call fcn.00404e80
push str..
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
call fcn.00405470
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push str.WaitForUpdate______BaseDir___s
push 0x40d028
call fcn.004016f0
add esp, 0xc
lea ecx, [ebp - 0x2c8]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404069
push str.WaitForUpdate_error:_failed_to_find_first_file
push 0x40d028
call fcn.004016f0
add esp, 8
xor bl, bl
jmp 0x4041f4
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4084e8
lea eax, [ebp - 0x29c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4040a6
test dx, dx
je 0x4040a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4040a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404080
xor eax, eax
jmp 0x4040ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4041c5
mov eax, 0x4084ec
lea ecx, [ebp - 0x29c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4040e6
test dx, dx
je 0x4040e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4040e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4040c0
xor eax, eax
jmp 0x4040eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4041c5
test byte [ebp - 0x2c8], 0x10
je 0x4041c5
push 0x4084f4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2f8]
call fcn.00405470
add esp, 4
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x2e0]
call fcn.00405580
add esp, 4
push str..
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00405580
mov eax, dword [ebp - 0x2cc]
add esp, 4
cmp eax, 8
jb 0x40415f
inc eax
push eax
push dword [ebp - 0x2e0]
call fcn.00404e80
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x2e0], ax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2cc], 7
mov dword [ebp - 0x2d0], 0
cmp eax, 8
jb 0x404198
inc eax
push eax
push dword [ebp - 0x2f8]
call fcn.00404e80
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.00404a20
call fcn.004042a0
add esp, 0x18
test al, al
je 0x4041b3
inc edi
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x4041c5
inc eax
push eax
push dword [ebp - 0x74]
call fcn.00404e80
lea eax, [ebp - 0x2c8]
push eax
push ebx
call esi
test eax, eax
jne 0x404070
cmp edi, 1
setg bl
movzx eax, bl
push eax
push edi
push str.WaitForUpdate:_full_Addin_package_count____d___IsWaitUpdate____d_
push 0x40d028
call fcn.004016f0
add esp, 0x10
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x404206
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40422c
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x404252
inc eax
push eax
push dword [ebp - 0x44]
call fcn.00404e80
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x404278
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00404e80
mov al, bl
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.00406283
mov esp, ebp
pop ebp
ret