Function at 0x415360
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], edi
test esi, esi
je 0x41564c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415395
sub eax, edx
cmp eax, 2
jb 0x41564c
lea eax, [ebp - 0x248]
push eax
push esi
call fcn.0041d63b
add esp, 8
test dword [ebp - 0x242], 0x4000
je 0x41564a
push 0x103
lea ecx, [ebp - 0x217]
push 0
push ecx
mov bl, 1
mov byte [ebp - 0x218], 0
call fcn.00426cd0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4153f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4153f0
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
push esi
je 0x415414
push 0x43cc24
push 0x104
lea edx, [ebp - 0x218]
push edx
jmp 0x415425
push str._s.
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0041d1e8
add esp, 0x10
lea ecx, [ebp - 0x388]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x394], edi
cmp edi, 0xffffffff
je 0x415632
cmp bl, 1
jne 0x415632
mov al, byte [ebp - 0x388]
test al, 0x20
je 0x415505
push 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0041d360
lea eax, [ebp - 0x110]
add esp, 0xc
mov byte [ebp - 0xd], 0
lea edx, [eax + 1]
jmp 0x415490
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415490
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x4154c2
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4154b0
mov cx, word [0x43bdb8]
mov word [edi], cx
lea eax, [ebp - 0x35c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4154d0
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4154e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x390]
and ecx, 3
inc dword [eax]
rep movsb byte es:[edi], byte [esi]
jmp 0x41560e
test al, 0x10
je 0x415614
lea eax, [ebp - 0x35c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415516
sub eax, edx
push eax
lea edx, [ebp - 0x35c]
push 0x43c718
push edx
call fcn.00430a1b
add esp, 0xc
test eax, eax
je 0x415614
lea eax, [ebp - 0x35c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415545
sub eax, edx
push eax
lea eax, [ebp - 0x35c]
push 0x43cc34
push eax
call fcn.00430a1b
add esp, 0xc
test eax, eax
je 0x415614
push 0x104
lea ecx, [ebp - 0x110]
push esi
push ecx
call fcn.0041d360
lea eax, [ebp - 0x110]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415590
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x4155c2
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4155b0
mov dx, word [0x43bdb8]
mov word [edi], dx
lea eax, [ebp - 0x35c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4155d0
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4155e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x390]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x110]
push ecx
call sym.jsService.exe_void___cdecl_KpBase::GetFileNumber_char_const___unsigned_long_int__
add esp, 8
mov esi, dword [ebp - 0x38c]
mov edi, dword [ebp - 0x394]
lea edx, [ebp - 0x388]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne bl
jmp 0x415452
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret