Function at 0x40136d
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push 0x2d0
mov eax, 0x414412
call fcn.004134b7
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x2d4], eax
call fcn.0040174c
xor ebx, ebx
push 0x250
lea eax, [ebp - 0x2a4]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040b690
mov eax, dword [ebp - 0x54]
add esp, 0xc
cmp dword [ebp - 0x40], 8
jae 0x4013b2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x2a4]
push eax
push 0x4171cc
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2b8], ebx
call fcn.00401f5d
mov dword [ebp - 0x2bc], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x2bc]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x2bc]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x2bc]
mov byte [eax + 0x28], 1
mov eax, dword [ebp - 0x2bc]
mov byte [eax + 0x29], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2a8], 0xffffffff
je 0x40150c
mov ecx, 0x4171d4
lea eax, [ebp - 0x278]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40144c
cmp dx, bx
je 0x401448
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40144c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401426
xor eax, eax
jmp 0x401451
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4014f1
mov ecx, 0x4171d8
lea eax, [ebp - 0x278]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40148a
cmp dx, bx
je 0x401486
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40148a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401464
xor eax, eax
jmp 0x40148f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4014f1
test byte [ebp - 0x2a4], 0x10
je 0x4014f1
xor eax, eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.00401a77
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.004027af
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0040234f
push 1
xor edi, edi
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004010d3
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40141b
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2b8], ebx
jne 0x401549
lea eax, [ebp - 0x2c0]
push eax
mov byte [ebp - 4], bl
call fcn.004018ae
push 1
xor edi, edi
lea esi, [ebp - 0x54]
call fcn.004010d3
xor eax, eax
lea esp, [ebp - 0x2ec]
call fcn.00413501
ret
mov dword [ebp - 0x2c8], ebx
call fcn.00401f95
mov dword [ebp - 0x2cc], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x2cc]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x2cc]
mov byte [eax + 0x11], 1
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2bc]
mov eax, dword [ecx]
mov dword [ebp - 0x2ac], eax
cmp eax, ecx
je 0x40164d
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4015a7
mov eax, dword [eax]
mov dword [ebp - 0x2a8], eax
cmp eax, ebx
je 0x4015ef
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4015ef
lea edi, [eax + eax]
mov eax, edi
call fcn.00411680
mov esi, esp
cmp esi, ebx
je 0x4015ef
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x2a8]
mov byte [esi], bl
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4015f1
xor eax, eax
push eax
call fcn.004056a3
fstp dword [ebp - 0x2a8]
fld dword [ebp - 0x2a8]
pop ecx
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x401630
lea eax, [ebp - 0x2a8]
push eax
lea esi, [ebp - 0x2d0]
call fcn.00402823
push eax
mov eax, esi
push eax
lea esi, [ebp - 0x2dc]
call fcn.0040243c
lea eax, [ebp - 0x2ac]
call fcn.004018f4
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x2bc]
jne 0x40159c
cmp dword [ebp - 0x2c8], ebx
jne 0x401691
mov dword [ebp - 0x2ac], ebx
lea eax, [ebp - 0x2d0]
push eax
mov byte [ebp - 4], 1
call fcn.0040192a
lea eax, [ebp - 0x2c0]
push eax
mov byte [ebp - 4], bl
call fcn.004018ae
push 1
xor edi, edi
lea esi, [ebp - 0x54]
call fcn.004010d3
mov eax, dword [ebp - 0x2ac]
jmp 0x40153d
mov esi, dword [ebp - 0x2cc]
fldz
mov eax, dword [esi]
fstp dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], eax
jmp 0x4016c3
fld dword [eax + 0xc]
lea eax, [ebp - 0x2ac]
fstp dword [ebp - 0x2a8]
call fcn.00401970
mov eax, dword [ebp - 0x2ac]
cmp eax, esi
jne 0x4016a9
fld dword [ebp - 0x2a8]
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
push ecx
push ecx
stosw word es:[edi], ax
fstp qword [esp]
push str._.1f
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push 8
push eax
call fcn.00405116
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x40170a
xor eax, eax
jmp 0x401720
lea eax, [edi + edi]
call fcn.00411680
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.004011e7
mov ecx, dword [ebp - 0x2d4]
call fcn.00401a77
mov dword [ebp - 0x2ac], 1
jmp 0x40165b