Function at 0x46ee00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test edi, edi
jne 0x46ee53
push edi
push edi
push 0x1ae
push str.FileGeneralFS.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80070057
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x46ee60
push eax
push eax
push 0x1af
jmp 0x46ee2f
push esi
push eax
push 0x5ba1d8
push 0x5b9d0c
call fcn.0043d550
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x46eea5
push 0
push 0
push 0x1b1
push str.FileGeneralFS.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 0xc
call fcn.00404520
mov ecx, eax
test ecx, ecx
je 0x46f2b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
call fcn.00404520
mov ecx, eax
test ecx, ecx
je 0x46f2c2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, ebx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x258]
push eax
push edi
call fcn.00471180
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x25c]
test al, al
je 0x46f0f2
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
push esi
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
call fcn.00478a70
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x46f099
lea ecx, [ebp - 0x288]
call fcn.00470070
lea eax, [ebp - 0x288]
push eax
push 0
push 0x10
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.00478810
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x46f08e
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x258], 0
call fcn.00458330
lea edx, [ebp - 0x258]
push edx
push 0
mov eax, dword [eax]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ebx, eax
test ebx, ebx
jns 0x46efbc
push 0
push 0
push 0x1bd
push str.FileGeneralFS.cpp
call fcn.0043bc90
add esp, 0x10
jmp 0x46f07e
lea eax, [ebp - 0x260]
mov dword [ebp - 0x25c], 0
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0046f940
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x46f058
mov eax, dword [ebp - 0x258]
push 0
push dword [ebp - 0x260]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
js 0x46f0e4
cmp ebx, 1
je 0x46f0a9
mov eax, dword [ebp - 0x264]
push dword [ebp - 0x25c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x46f032
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x25c], 0
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0046f940
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x46efe2
push 0
push 0
push 0x1c3
push str.FileGeneralFS.cpp
call fcn.0043bc90
mov eax, dword [ebp - 0x25c]
add esp, 0x10
test eax, eax
je 0x46f07e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x46f08e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x288]
call fcn.00470150
lea ecx, [ebp - 0x270]
call fcn.00425e90
jmp 0x46f24b
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x46f0b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x46f0c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x288]
call fcn.00470150
lea ecx, [ebp - 0x270]
call fcn.00425e90
jmp 0x46f249
push 0
push 0
push 0x1c6
jmp 0x46f061
push 0x5bd92c
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00413ba0
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x260]
mov ebx, eax
mov dword [ebp - 0x274], ebx
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46f142
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
jne 0x46f167
push 0
push 0
push 0x1d3
push str.FileGeneralFS.cpp
call fcn.0043bc90
add esp, 0x10
mov ebx, 0x80004005
jmp 0x46f24b
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x46f242
nop dword [eax]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x258], 0
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.0046f940
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x46f290
mov ecx, dword [ebp - 0x25c]
mov dword [ecx + 4], 2
mov eax, dword [ebp - 0x234]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x238]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x250]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x24c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x240]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x23c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x248]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x244]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x264]
push dword [ebp - 0x258]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x46f226
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x274]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46f180
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46f263
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46f27b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x1d9
push str.FileGeneralFS.cpp
call fcn.0043bc90
mov eax, dword [ebp - 0x258]
add esp, 0x10
test eax, eax
je 0x46f24b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46f24b
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
int3