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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10059e22
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2f8], eax
push esi
lea edi, [eax + 1]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], 0x5c
call fcn.1000f7a0
inc eax
push eax
push esi
xor ecx, ecx
lea esi, [esp + 0x64]
call fcn.1000caf0
mov byte [esp + 0x2f8], 1
mov eax, dword [esp + 0x10]
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x1001268e
mov eax, dword [eax]
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x100126e5
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
call fcn.10007ba0
lea edx, [esi + 0x10]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2fc], 2
call fcn.10007ba0
cmp dword [esp + 0x70], edi
jb 0x100126de
mov eax, dword [esp + 0x5c]
push eax
call fcn.1004076b
add esp, 4
mov eax, esi
jmp 0x100128e9
mov ebx, 4
test dword [esp + 0x94], 0x400
jne 0x10012843
mov ecx, 0x10069f30
lea eax, [esp + 0xc0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001272b
test dx, dx
je 0x10012727
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001272b
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10012707
xor eax, eax
jmp 0x10012730
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012843
mov ecx, 0x1006a150
lea eax, [esp + 0xc0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012768
test dx, dx
je 0x10012764
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012768
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10012744
xor eax, eax
jmp 0x1001276d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012843
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.100088b0
add esp, 0xc
mov byte [esp + 0x2f8], 3
test byte [esp + 0x94], 0x10
lea ecx, [esp + 0x78]
lea edi, [esp + 0x2c]
jne 0x100127b0
lea edi, [esp + 0x1c]
call fcn.1000cb20
test byte [esp + 0x94], 0x10
je 0x10012824
cmp byte [ebp + 0x10], 0
je 0x10012824
lea ecx, [esp + 0x78]
push ecx
mov cl, 1
lea esi, [esp + 0x40]
call fcn.10012540
add esp, 4
mov byte [esp + 0x2f8], bl
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.10012910
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.10012910
call fcn.1000fd80
mov esi, dword [esp + 0x10]
mov byte [esp + 0x2f8], 1
cmp dword [esp + 0x8c], 8
jb 0x10012843
mov eax, dword [esp + 0x78]
push eax
call fcn.1004076b
add esp, 4
lea ecx, [esp + 0x94]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100126ea
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
call fcn.10007ba0
lea edx, [ebx + 0x10]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2fc], 5
call fcn.10007ba0
cmp dword [esp + 0x70], 8
jb 0x10012898
mov eax, dword [esp + 0x5c]
push eax
call fcn.1004076b
add esp, 4
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
test esi, esi
je 0x100128cb
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.10003370
push esi
call fcn.1004076b
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100128e7
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10003370
push esi
call fcn.1004076b
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.10040061
mov esp, ebp
pop ebp
ret