Function at 0x403310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6d31
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5055f8]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x5055f8]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp byte [edx], 0
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x40337b
xor ecx, ecx
jmp 0x40338d
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403380
sub ecx, edi
mov edi, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401bc0
push 3
push 0x4ee6a8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1a0], 0
call fcn.00405bb0
cmp byte [esi], 0
jne 0x4033bc
xor ecx, ecx
jmp 0x4033ca
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033c1
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.00405bb0
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x44]
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4035a5
mov bl, byte [ebp + 0x10]
lea ecx, [ecx]
test bl, bl
jne 0x4034d5
test byte [esp + 0x44], 0x10
jne 0x40358a
mov ecx, 0x4ee6ac
lea eax, [esp + 0x70]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403440
test dl, dl
je 0x40343c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403440
add eax, 2
add ecx, 2
test dl, dl
jne 0x403420
xor eax, eax
jmp 0x403445
sbb eax, eax
or eax, 1
test eax, eax
je 0x40358a
mov ecx, 0x4ee6b0
lea eax, [esp + 0x70]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403476
test dl, dl
je 0x403472
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403476
add eax, 2
add ecx, 2
test dl, dl
jne 0x403456
xor eax, eax
jmp 0x40347b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40358a
cmp byte [esp + 0x70], 0
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jne 0x4034a3
xor ecx, ecx
jmp 0x4034b9
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034b0
sub ecx, edx
push ecx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x34]
call fcn.00401bc0
mov byte [esp + 0x198], 1
jmp 0x403563
cmp bl, 1
jne 0x40358a
test byte [esp + 0x44], 0x10
je 0x40358a
mov ecx, 0x4ee6ac
lea eax, [esp + 0x70]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403512
test dl, dl
je 0x40350e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403512
add eax, 2
add ecx, 2
test dl, dl
jne 0x4034f2
xor eax, eax
jmp 0x403517
sbb eax, eax
or eax, 1
test eax, eax
je 0x40358a
mov ecx, 0x4ee6b0
lea eax, [esp + 0x70]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403544
test dl, dl
je 0x403540
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403544
add eax, 2
add ecx, 2
test dl, dl
jne 0x403524
xor eax, eax
jmp 0x403549
sbb eax, eax
or eax, 1
test eax, eax
je 0x40358a
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x30]
call fcn.004019d0
mov byte [esp + 0x198], 2
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00404050
mov byte [esp + 0x198], 0
cmp dword [esp + 0x40], 0x10
jb 0x40358a
push dword [esp + 0x2c]
call fcn.0049a5c3
add esp, 4
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x403400
push esi
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [esp + 0x28], 0x10
jb 0x4035b8
push dword [esp + 0x14]
call fcn.0049a5c3
add esp, 4
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0049ad54
mov esp, ebp
pop ebp
ret