Function at 0x10015140
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x1006a050]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0xc], 0
test esi, esi
je 0x10015685
cmp dword [ebp + 0x10], edi
jne 0x1001518a
cmp dword [ebp + 0x14], edi
je 0x10015685
mov byte [esp + 0x70], 0
lea edx, [esp + 0x6c]
push dword [esp + 0x70]
lea ecx, [esp + 0x94]
call fcn.10015fc0
add esp, 4
lea ecx, [esp + 0x90]
call fcn.1000a950
test al, al
jne 0x1001522e
mov eax, dword [esp + 8]
test eax, eax
je 0x100151c7
mov ecx, eax
call fcn.10025240
jmp 0x100151da
cmp dword [0x1009299c], 0x10
mov eax, 0x10092988
cmovae eax, dword [0x10092988]
mov byte [esp + 8], 0
lea edx, [esp + 0x6c]
push dword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], eax
call fcn.10015fc0
add esp, 4
lea eax, [esp + 0x90]
lea edx, [esp + 0x78]
lea ecx, [esp + 0x48]
push eax
call fcn.1000c2f0
add esp, 4
lea ecx, [esp + 0x90]
push eax
call fcn.1000d320
lea ecx, [esp + 0x48]
call fcn.1000a9e0
lea ecx, [esp + 0x78]
call fcn.1000a9e0
push 0x140
lea eax, [esp + 0xac]
push 0
push eax
call fcn.100336f0
add esp, 0xc
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x10015272
push esi
push str.No_files_found_in:__s
push 3
call fcn.1000c780
add esp, 0xc
jmp 0x10015647
push 0x28
mov dword [esp + 0x78], edi
call fcn.10031b56
mov edi, dword [ebp + 0x14]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x70], eax
nop word [eax + eax]
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0xa8]
jne 0x100152b5
test al, 0x10
jne 0x1001554a
test edi, edi
jne 0x100152c1
test al, 0x10
je 0x1001554a
lea esi, [esp + 0xd4]
mov byte [esp + 8], 0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100152d2
sub ecx, edx
push ecx
push esi
push dword [esp + 0x10]
lea ecx, [esp + 0x84]
call fcn.1000bab0
mov eax, dword [esp + 0x94]
lea esi, [esp + 0x84]
add esp, 0xc
cmp dword [esp + 0x8c], 8
cmovae esi, dword [esp + 0x78]
lea ecx, [eax + eax]
lea edx, [ecx + esi]
sar ecx, 1
cmp ecx, 2
jl 0x10015342
mov eax, dword [esi]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x10015342
cmp ecx, 3
jl 0x1001533e
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x1001533a
cmp eax, 0x2f
jne 0x1001533e
mov al, 1
jmp 0x1001534e
xor al, al
jmp 0x1001534e
mov ecx, esi
call fcn.1000a600
cmp esi, eax
setne al
test al, al
jne 0x10015413
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x98]
call fcn.1000a880
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.1000c2f0
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.1000d320
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x100153c0
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100153b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100156a6
push edx
push ecx
call fcn.10031ea0
add esp, 8
mov edx, dword [esp + 0x5c]
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp edx, 8
jb 0x10015413
mov ecx, dword [esp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015409
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100156a6
push edx
push ecx
call fcn.10031ea0
add esp, 8
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
call fcn.1000b7d0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
call fcn.10016000
mov edx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [esp + 0x3c], xmm0
cmp byte [edx + 0xd], 0
jne 0x1001545b
add edx, 0x10
lea ecx, [esp + 0x10]
call fcn.10016520
test al, al
je 0x100154d5
cmp dword [esp + 0x74], 0x6666666
je 0x100156a1
mov esi, dword [esp + 0x70]
push 0x28
call fcn.10031b56
add esp, 4
lea ecx, [esp + 0x70]
mov dword [eax + 0x10], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [esp + 0x10]
push eax
push dword [esp + 0x44]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x28]
push dword [esp + 0x44]
movq qword [eax + 0x20], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xf
mov byte [esp + 0x1c], 0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.100162f0
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x1001550b
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100156a6
push edx
push ecx
call fcn.10031ea0
add esp, 8
mov edx, dword [esp + 0x8c]
cmp edx, 8
jb 0x1001554a
mov ecx, dword [esp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015540
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100156a6
push edx
push ecx
call fcn.10031ea0
add esp, 8
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100152a0
mov eax, dword [esp + 0x74]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10037d52
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 8], edi
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x1001562a
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x10]
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10037d52
add esp, 4
mov edx, eax
cmp dword [edi + 0x14], 0x10
jb 0x100155bc
mov edi, dword [edi]
mov ecx, edx
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x100155c0
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov dword [edi + eax*4], edx
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10015604
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10015600
nop
cmp esi, dword [eax + 8]
jne 0x10015600
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100155f0
mov esi, eax
jmp 0x1001561c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1001561c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10015610
cmp byte [esi + 0xd], 0
je 0x10015597
mov eax, dword [esp + 0x70]
push dword [eax + 4]
lea eax, [esp + 0x74]
push eax
mov ecx, eax
call fcn.10016060
push 0x28
push dword [esp + 0x74]
call fcn.10031ea0
add esp, 8
mov edx, dword [esp + 0xa4]
cmp edx, 8
jb 0x10015685
mov ecx, dword [esp + 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001567b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100156a6
push edx
push ecx
call fcn.10031ea0
add esp, 8
mov ecx, dword [esp + 0x1ec]
mov edx, edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.10031b48
mov esp, ebp
pop ebp
ret 0x10
call fcn.1000c440
call fcn.10037627
int3