Function at 0x10010790
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10258d47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0xa4]
mov dword [esp + 0xa0], ebx
rep stosd dword es:[edi], eax
push 0x102b7d58
lea eax, [esp + 0x24]
push esi
push eax
mov dword [esp + 0x34], esi
call fcn.1008f400
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xa0]
push ecx
push edx
mov dword [esp + 0x300], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
push str.TMailCfg_
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call fcn.1008e4f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2f8], 1
call fcn.1008ffc0
xor edi, edi
cmp ebp, 0xffffffff
je 0x10010b4c
mov ebx, dword [esp + 0x300]
test byte [esp + 0xa0], 0x10
jne 0x10010b2e
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x10]
push eax
call fcn.1008e4f0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push esi
push edx
mov byte [esp + 0x304], 2
call fcn.1008f230
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f8], 3
call fcn.1008ffc0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.1008fe70
test eax, eax
jne 0x10010b0c
push str..ini
lea ecx, [esp + 0x14]
call fcn.1008fe70
cmp eax, 0xffffffff
je 0x10010b0c
lea ecx, [esp + 0x38]
call fcn.1000f9f0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x300], 4
call fcn.10010bc0
test eax, eax
je 0x10010afb
mov eax, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x30], ebp
inc ebp
test ebp, ebp
jne 0x10010917
mov esi, dword [ebx]
test esi, esi
je 0x1001090a
mov ecx, eax
dec eax
test ecx, ecx
je 0x100108f9
lea edi, [eax + 1]
mov ecx, esi
call fcn.1000fa90
add esi, 0x68
dec edi
jne 0x100108ec
mov eax, dword [ebx]
push eax
call fcn.1024ac9a
add esp, 4
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
jmp 0x10010ad5
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1001096a
lea edx, [ebp + ebp*2]
lea edi, [ebp + edx*4]
shl edi, 3
push edi
call fcn.1024ac71
mov edx, eax
mov ecx, edi
mov dword [ebx], edx
mov esi, edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [ebp]
test esi, esi
je 0x10010959
mov ecx, esi
call fcn.1000f9f0
add esi, 0x68
dec edi
jne 0x1001094e
mov dword [ebx + 8], ebp
mov dword [ebx + 4], ebp
jmp 0x10010ad5
mov esi, dword [ebx + 8]
cmp ebp, esi
jg 0x100109f8
cmp eax, ebp
jge 0x100109ca
mov edx, ebp
lea esi, [eax + eax*2]
sub edx, eax
lea eax, [eax + esi*4]
lea edi, [ecx + eax*8]
lea ecx, [edx + edx*2]
xor eax, eax
mov dword [esp + 0x14], edi
lea ecx, [edx + ecx*4]
shl ecx, 3
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x100109f0
mov esi, dword [esp + 0x14]
lea edi, [edx + 1]
test esi, esi
je 0x100109bc
mov ecx, esi
call fcn.1000f9f0
add esi, 0x68
dec edi
jne 0x100109b1
mov dword [ebx + 4], ebp
jmp 0x10010ad5
jle 0x100109f0
lea edx, [ebp + ebp*2]
sub eax, ebp
lea edx, [ebp + edx*4]
lea esi, [ecx + edx*8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x100109f0
lea edi, [eax + 1]
mov ecx, esi
call fcn.1000fa90
add esi, 0x68
dec edi
jne 0x100109e3
mov dword [ebx + 4], ebp
jmp 0x10010ad5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x10010a23
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x10010a16
mov ecx, 4
jmp 0x10010a23
cmp ecx, 0x400
jle 0x10010a23
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebp, eax
jge 0x10010a30
mov dword [esp + 0x18], eax
jmp 0x10010a36
mov dword [esp + 0x18], ebp
mov eax, ebp
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
shl eax, 3
push eax
call fcn.1024ac71
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
mov edi, eax
lea edx, [ecx + ecx*2]
add esp, 4
lea ecx, [ecx + edx*4]
mov edx, ebp
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
sub edx, eax
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*8]
lea eax, [edx + edx*2]
mov dword [esp + 0x34], edi
lea ecx, [edx + eax*4]
xor eax, eax
shl ecx, 3
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
dec edx
test ecx, ecx
je 0x10010aba
mov esi, dword [esp + 0x34]
lea edi, [edx + 1]
test esi, esi
je 0x10010ab4
mov ecx, esi
call fcn.1000f9f0
add esi, 0x68
dec edi
jne 0x10010aa9
mov eax, dword [ebx]
push eax
call fcn.1024ac9a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [ebx], edx
mov dword [ebx + 4], ebp
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
lea ecx, [ecx + eax*8]
call fcn.1000fd90
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edi, 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 3
call fcn.1000fa90
lea ecx, [esp + 0x24]
mov byte [esp + 0x2f8], 2
call fcn.1008ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f8], 1
call fcn.1008ec90
lea edx, [esp + 0xa0]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001082f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2f8], 0
call fcn.1008ec90
lea ecx, [esp + 0x20]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x2f0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ec
ret 4