Function at 0x403dd0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4776e0
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x49606c]
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 ebx, ecx
mov dword [ebp - 0x298], ebx
mov edx, ebx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403e20
sub edx, ecx
lea ecx, [ebp - 0x40]
sar edx, 1
push edx
push ebx
call fcn.004076e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 2
jb 0x403e7a
cmp edx, 8
lea esi, [ebp - 0x40]
push 4
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 2]
push 0x489ff0
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x403e98
push 2
push 0x489ff0
mov byte [ebp - 0x294], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x294]
push 2
call fcn.0040a3c0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
je 0x40405e
test byte [ebp - 0x290], 0x10
je 0x404035
cmp word [ebp - 0x264], 0x2e
je 0x404035
mov ecx, ebx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ef4
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004076e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 1
jb 0x403f4b
cmp edx, 8
lea esi, [ebp - 0x28]
push 2
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 1]
push 0x48a58c
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x403f69
push 1
push 0x48a58c
mov byte [ebp - 0x29c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x29c]
push 1
call fcn.0040a3c0
lea eax, [ebp - 0x264]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f72
mov ebx, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, ebx
sar eax, 1
sub ecx, edx
cmp eax, ecx
ja 0x403fbd
lea edi, [edx + eax]
cmp ebx, 8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae esi, dword [ebp - 0x28]
add eax, eax
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [esi + edx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x403fdb
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 0x2a0], 0
push ecx
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a3c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00403390
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404029
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40401f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040b2
push edx
push ecx
call fcn.0042e698
add esp, 8
mov eax, dword [ebp - 0x294]
mov ebx, dword [ebp - 0x298]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404052
mov eax, dword [ebp - 0x294]
jmp 0x403ec0
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x404094
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40408a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040b2
push edx
push ecx
call fcn.0042e698
add esp, 8
xor eax, eax
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.0042e658
mov esp, ebp
pop ebp
ret
call fcn.0043b1c8
int3