Function at 0x4031e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x268], ecx
mov ecx, dword [ebp + 0x18]
lea esi, [ebp - 0x260]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
mov dword [ebp - 0x274], ecx
mov ecx, 0x2a
cmovne esi, eax
mov dword [ebp - 0x25c], edx
push 0x2e
push esi
mov word [ebp - 0x260], cx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x254], edx
call fcn.00408f30
add esp, 8
test eax, eax
je 0x403290
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403270
sub ecx, edx
cmp byte [esi + ecx - 1], 0x2e
jne 0x403290
push edi
push esi
mov esi, dword [ebp - 0x268]
push esi
push str._s_s_s
jmp 0x40329e
push edi
push esi
mov esi, dword [ebp - 0x268]
push esi
push str._s_s._s
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp + 0x20]
add esp, 0x14
neg edi
sbb edi, edi
and edi, 8
cmp dword [ebp + 0x1c], 2
mov dword [ebp - 0x258], edi
jne 0x4032ee
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032d0
sub ecx, edx
xor eax, eax
mov edx, 1
cmp byte [ecx + esi - 1], 0x5c
cmovne eax, edx
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x403542
test byte [ebp - 0x248], 0x10
jne 0x403515
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jne 0x4033cb
cmp dword [ebp - 0x26c], 0
jne 0x403486
mov ebx, esi
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403340
mov edx, dword [ebp - 0x24c]
sub ebx, ecx
inc edx
mov dword [ebp - 0x26c], 1
add edx, ebx
cmp dword [ebp - 0x25c], 0
mov dword [ebp - 0x24c], edx
je 0x40348c
mov edi, dword [ebp - 0x254]
mov ecx, esi
mov edx, edi
sub edx, esi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403380
inc edi
lea esi, [ebp - 0x21c]
add edi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4033a0
mov eax, dword [ebp - 0x24c]
sub esi, ecx
mov ecx, dword [ebp - 0x258]
add eax, esi
inc ecx
add eax, ecx
inc dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
jmp 0x4034bf
cmp eax, 2
jne 0x403486
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033e0
sub ecx, edx
cmp dword [ebp - 0x264], 0
mov edx, dword [ebp - 0x24c]
lea ebx, [ecx + 1]
cmove ebx, ecx
inc edx
add edx, ebx
cmp dword [ebp - 0x25c], 0
mov dword [ebp - 0x24c], edx
je 0x40348c
mov edi, dword [ebp - 0x254]
mov ecx, esi
mov edx, edi
sub edx, esi
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403420
cmp dword [ebp - 0x264], 0
je 0x403450
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403437
mov ax, word [0x416af8]
mov word [edi], ax
mov edi, dword [ebp - 0x254]
lea esi, [ebp - 0x21c]
add edi, ebx
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x403460
mov eax, dword [ebp - 0x24c]
sub esi, ecx
inc eax
add eax, dword [ebp - 0x258]
add eax, esi
inc dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
jmp 0x4034bf
mov edx, dword [ebp - 0x24c]
lea esi, [ebp - 0x21c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x403495
inc dword [ebp - 0x250]
sub esi, ecx
inc edx
lea eax, [edi + esi]
add edx, eax
cmp dword [ebp - 0x25c], 0
mov dword [ebp - 0x24c], edx
je 0x403515
mov edi, dword [ebp - 0x254]
lea ecx, [ebp - 0x21c]
mov edx, edi
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4034d0
cmp dword [ebp + 0x20], 0
je 0x4034fe
push dword [ebp - 0x258]
lea eax, [ebp - 0x234]
push eax
lea eax, [esi + 1]
add eax, edi
push eax
call fcn.004092e0
add esp, 0xc
mov eax, dword [ebp - 0x258]
inc edi
add eax, esi
add edi, eax
mov dword [ebp - 0x254], edi
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [ebp - 0x268]
test eax, eax
jne 0x403311
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x25c]
test edx, edx
je 0x403581
xor ecx, ecx
cmp dword [ebp + 0x1c], 1
jne 0x403562
cmp dword [ebp - 0x26c], ecx
je 0x403562
inc edx
lea ecx, [ebx + 1]
add edx, ebx
mov ebx, dword [ebp - 0x24c]
mov eax, ebx
push 0
push edi
sub eax, ecx
push eax
push dword [ebp - 0x250]
push edx
call fcn.00406df0
add esp, 0x14
jmp 0x40358d
mov ebx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x403599
mov dword [ecx], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret