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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018bc68
mov eax, dword fs:[0]
push eax
sub esp, 0xaa8
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
xor edx, edx
push 0x1fe
mov dword [ebp - 0xaa4], eax
push edx
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0xaa8], ecx
mov word [ebp - 0x214], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x250
lea ecx, [ebp - 0xa9c]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x812]
push edx
mov word [ebp - 0x814], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x612]
push ecx
mov word [ebp - 0x614], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10039469
mov esi, dword [esi]
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy_s]
push esi
lea edx, [ebp - 0x414]
push 0x100
push edx
call edi
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039490
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x416], 0x5c
je 0x100394c6
push 0x101a37bc
lea eax, [ebp - 0x414]
push 0x100
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x814]
push 0x100
push edx
call edi
add esp, 0xc
push 0x101a7140
lea eax, [ebp - 0x414]
push 0x100
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0xa9c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xab0], eax
cmp eax, 0xffffffff
jne 0x1003951a
or eax, eax
jmp 0x10039e43
test byte [ebp - 0xa9c], 0x10
mov ebx, dword [ebp + 0x14]
je 0x1003962d
mov ecx, 0x101a7050
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003955b
test dx, dx
je 0x10039557
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003955b
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039535
xor eax, eax
jmp 0x10039560
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003962d
mov ecx, 0x101a7054
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10039599
test dx, dx
je 0x10039595
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10039599
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039573
xor eax, eax
jmp 0x1003959e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003962d
test bl, bl
je 0x10039950
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x614]
push 0x100
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0xa70]
push edx
lea eax, [ebp - 0x614]
push 0x100
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x614]
lea ecx, [ebp - 0x830]
call fcn.1000ba40
mov ecx, dword [ebp - 0xaa8]
mov edx, dword [ebp - 0xaa4]
push 1
push ebx
push ecx
push edx
lea eax, [ebp - 0x830]
push eax
mov dword [ebp - 4], 0
call fcn.10039390
add esp, 0x14
lea esi, [ebp - 0x830]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ba80
jmp 0x10039950
mov ecx, 0x101a7050
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003965e
test dx, dx
je 0x1003965a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003965e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039638
xor eax, eax
jmp 0x10039663
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
je 0x10039950
mov ecx, 0x101a7054
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003969e
cmp dx, bx
je 0x1003969a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003969e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10039678
xor eax, eax
jmp 0x100396a3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10039950
lea ecx, [ebp - 0xa70]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x214]
push 0x101a7144
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0xaa4]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0x10
mov byte [ebp - 0xa9d], bl
mov dword [ebp - 0xaac], ebx
test ecx, ecx
jle 0x1003981c
lea edx, [ebp - 0xa70]
push 0x2e
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x100397b5
add eax, 2
xor ecx, ecx
mov word [ebp - 0x830], cx
mov ecx, eax
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10039740
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x830]
call fcn.1000b950
mov edx, dword [ebp - 0xaa4]
mov dword [ebp - 4], 1
mov eax, dword [edx]
mov edi, dword [eax + ebx + 0x10]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x10039778
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x830]
call fcn.1003b210
test eax, eax
je 0x100397e7
mov eax, dword [ebp - 0xaa4]
mov ecx, dword [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ecx + ebx + 0x10], 0
lea esi, [ebp - 0x830]
je 0x10039810
call fcn.1000ba80
mov esi, dword [ebp - 0xaa4]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov edi, dword [ebp - 0xaac]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
mov dword [ebp - 0xaac], edi
cmp edi, eax
jl 0x10039700
jmp 0x1003981c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
mov byte [ebp - 0xa9d], 1
jb 0x1003981c
mov ecx, dword [ebp - 0x830]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1003981c
mov byte [ebp - 0xa9d], 1
call fcn.1000ba80
cmp byte [ebp + 0x18], 0
je 0x100398b5
cmp byte [ebp - 0xa9d], 0
jne 0x10039950
xor edx, edx
lea eax, [ebp - 0x214]
mov word [ebp - 0x830], dx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039860
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x830]
call fcn.1000b950
mov edi, dword [ebp - 0xaa8]
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.1000f3e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
jb 0x10039950
mov eax, dword [ebp - 0x830]
push eax
jmp 0x1003993c
cmp byte [ebp - 0xa9d], 0
je 0x10039950
xor ecx, ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], cx
lea edx, [eax + 2]
jmp 0x100398f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100398f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x830]
call fcn.1000b950
mov edi, dword [ebp - 0xaa8]
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.1000f3e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
jb 0x10039950
mov edx, dword [ebp - 0x830]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x10039950
mov esi, dword [ebp - 0xab0]
lea eax, [ebp - 0xa9c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10039e18
test byte [ebp - 0xa9c], 0x10
je 0x10039ac4
mov ecx, 0x101a7050
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100399aa
test dx, dx
je 0x100399a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100399aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039984
xor eax, eax
jmp 0x100399af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10039ac4
mov ecx, 0x101a7054
lea eax, [ebp - 0xa70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100399e8
test dx, dx
je 0x100399e4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100399e8
add eax, 4
add ecx, 4
test dx, dx
jne 0x100399c2
xor eax, eax
jmp 0x100399ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10039ac4
mov ebx, dword [ebp + 0x14]
test bl, bl
je 0x10039950
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 0x614]
push 0x100
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0xa70]
push eax
lea ecx, [ebp - 0x614]
push 0x100
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
xor edx, edx
lea eax, [ebp - 0x614]
mov word [ebp - 0x830], dx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039a60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x614]
lea esi, [ebp - 0x830]
call fcn.1000b950
mov eax, dword [ebp - 0xaa8]
mov ecx, dword [ebp - 0xaa4]
push 1
push ebx
push eax
push ecx
mov edx, esi
push edx
mov dword [ebp - 4], 4
call fcn.10039390
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
jb 0x10039950
mov eax, dword [ebp - 0x830]
push eax
jmp 0x1003993c
mov ecx, 0x101a7050
lea eax, [ebp - 0xa70]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10039af6
test dx, dx
je 0x10039af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10039af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039ad0
xor eax, eax
jmp 0x10039afb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10039950
mov ecx, 0x101a7054
lea eax, [ebp - 0xa70]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10039b36
test dx, dx
je 0x10039b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10039b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039b10
xor eax, eax
jmp 0x10039b3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10039950
lea ecx, [ebp - 0xa70]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x214]
push 0x101a7144
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xaa4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0x10
mov byte [ebp - 0xa9d], 0
mov dword [ebp - 0xaac], 0
test ecx, ecx
jle 0x10039cd9
xor ebx, ebx
lea edx, [ebp - 0xa70]
push 0x2e
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10039c61
add eax, 2
xor ecx, ecx
mov word [ebp - 0x830], cx
mov ecx, eax
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10039be0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x830]
call fcn.1000b950
mov edx, dword [ebp - 0xaa4]
mov dword [ebp - 4], 5
mov eax, dword [edx]
mov edi, dword [eax + ebx + 0x10]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x10039c18
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x830]
call fcn.1003b210
test eax, eax
je 0x10039c99
mov eax, dword [ebp - 0xaa4]
mov ecx, dword [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ecx + ebx + 0x10], 0
je 0x10039cb9
cmp dword [ebp - 0x81c], 8
jb 0x10039c61
mov edx, dword [ebp - 0x830]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xaa4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov esi, dword [ebp - 0xaac]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x1c
mov dword [ebp - 0xaac], esi
cmp esi, eax
jl 0x10039b9f
jmp 0x10039cd9
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
mov byte [ebp - 0xa9d], 1
jb 0x10039cd9
mov ecx, dword [ebp - 0x830]
push ecx
jmp 0x10039cd0
cmp dword [ebp - 0x81c], 8
mov byte [ebp - 0xa9d], 1
jb 0x10039cd9
mov edx, dword [ebp - 0x830]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [ebp + 0x18], 0
je 0x10039d6b
cmp byte [ebp - 0xa9d], 0
jne 0x10039950
xor eax, eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039d16
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x830]
call fcn.1000b950
mov edi, dword [ebp - 0xaa8]
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.1000f3e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x81c], 8
jb 0x10039950
mov ecx, dword [ebp - 0x830]
push ecx
jmp 0x1003993c
cmp byte [ebp - 0xa9d], 0
je 0x10039950
xor edx, edx
lea eax, [ebp - 0x214]
mov word [ebp - 0x84c], dx
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039da0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x84c]
call fcn.1000b950
mov edi, dword [ebp - 0xaa8]
mov esi, 7
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], esi
call fcn.1000f3e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x838], 8
jb 0x10039dfa
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], cx
jmp 0x10039950
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xaa8]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret