Function at 0x4396bb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ebp - 0x3c], edi
call fcn.0043eb66
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x4396e6
mov ecx, edi
jmp 0x4398b8
push eax
lea eax, [ebp - 0x20]
push str._s_.btapp
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0048e075
add esp, 0xc
inc dword [esi + 4]
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0048e055
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x43983d
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 8]
call fcn.0048ea2a
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], ebx
jbe 0x4397bc
mov dword [ebp - 0x10], ebx
mov edi, dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.0048ea50
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + edi + 8]
call fcn.0047cb94
test eax, eax
je 0x43976f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], 0x14
cmp eax, dword [esi + 0x14]
jb 0x439743
jmp 0x4397bc
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0xc]
imul edi, edi, 0x14
mov ecx, dword [esi + 4]
mov dword [edi + eax + 0x10], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x278]
cmp ecx, dword [edi + eax]
jne 0x439793
cmp ebx, dword [edi + eax + 4]
je 0x4397bc
mov ebx, dword [esi]
push dword [edi + eax + 0xc]
lea ecx, [ebp - 8]
add ebx, 0xc
call fcn.0048ea50
push eax
mov ecx, esi
call dword [ebx]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x278]
and dword [edi + eax + 4], 0
mov dword [edi + eax], ecx
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jne 0x439813
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
call fcn.0048ea50
mov ecx, eax
call fcn.004221f4
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
push 0x14
mov dword [ebp - 0x24], eax
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0xc]
call fcn.0048ebd1
mov edi, dword [esi]
lea ecx, [ebp - 8]
add edi, 4
call fcn.0048ea50
push eax
mov ecx, esi
call dword [edi]
lea ecx, [ebp - 8]
call fcn.0048e75f
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x439833
or dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
jne 0x439729
cmp dword [ebp - 0xc], ebx
je 0x439851
cmp dword [ebp - 0xc], 0xffffffff
je 0x439851
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], ebx
jbe 0x4398ad
lea edi, [esi + 0xc]
mov eax, dword [edi]
add eax, ebx
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esi + 4]
je 0x43989f
push dword [eax + 0xc]
mov edx, dword [esi]
push dword [eax + 8]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [edi]
mov edx, dword [esi]
add eax, ebx
push dword [eax + 0xc]
mov ecx, esi
push dword [eax + 8]
call dword [edx + 0x10]
mov eax, dword [edi]
mov ecx, dword [ebx + eax + 8]
mov dl, 1
call fcn.0046b3e9
push 0x14
push dword [ebp - 4]
mov ecx, edi
call fcn.0048e52c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x14
cmp eax, dword [esi + 0x14]
jb 0x43985c
lea ecx, [ebp - 0x20]
call fcn.0048e6b4
mov ecx, dword [ebp - 0x3c]
call fcn.0043ebe4
pop edi
pop esi
pop ebx
leave
ret