Function at 0x1003d130
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca70b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x101063e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x890], ebx
xor eax, eax
mov dword [ebp - 0x89c], eax
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x8a0]
push eax
call fcn.1003b550
mov eax, dword [ebp - 0x8a0]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1003d810
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d810
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009c500
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x100dab48
push dword [ebp - 0x8a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x424], 0
call eax
cmp eax, 0x104
jge 0x1003d2fb
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x858]
push 0x104
push eax
call fcn.100a527b
push eax
call fcn.10003e70
add esp, 0x10
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x428], eax
cmp eax, edi
je 0x1003d301
push 0
lea eax, [ebp - 0x634]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1003d2a5
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x1003d29b
cmp eax, edi
je 0x1003d29b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x428], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003d2fb
lea eax, [ebp - 0x634]
push 0x5c
push eax
call fcn.1009d0ed
mov esi, eax
lea eax, [ebp - 0x634]
push 0x2f
push eax
call fcn.1009d0ed
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x1003d2d6
test esi, esi
je 0x1003d2f1
lea ecx, [ebp - 0x634]
test esi, esi
lea eax, [ebp - 0x634]
cmovne eax, esi
cmp ecx, eax
jb 0x1003d2ec
xor eax, eax
mov word [ecx], ax
jmp 0x1003d2f1
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x424], 1
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x424], 0
je 0x1003d791
mov ecx, dword [ebp - 0x884]
shr ecx, 4
and ecx, 1
je 0x1003d34a
cmp word [ebp - 0x858], 0x2e
jne 0x1003d34a
mov dx, word [ebp - 0x856]
test dx, dx
je 0x1003d791
cmp dx, 0x2e
jne 0x1003d34a
cmp word [ebp - 0x854], 0
je 0x1003d791
test ecx, ecx
je 0x1003d791
call fcn.10004380
mov ecx, eax
test ecx, ecx
je 0x1003d84e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x894], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
mov byte [ebp - 4], 2
jge 0x1003d39d
push 0x104
lea ecx, [ebp - 0x894]
call fcn.10004430
mov esi, dword [ebp - 0x894]
cmp dword [esi - 8], 0x104
jl 0x1003d858
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x634]
push eax
call edi
test eax, eax
je 0x1003d470
movzx eax, word [ebp + eax*2 - 0x636]
cmp eax, 0x5c
je 0x1003d3e7
cmp eax, 0x2f
je 0x1003d3e7
mov bl, 1
jmp 0x1003d3e9
xor bl, bl
lea eax, [ebp - 0x634]
push eax
call edi
movzx ecx, bl
add eax, ecx
cmp eax, 0x104
jge 0x1003d46a
lea eax, [ebp - 0x634]
push eax
push 0x104
push esi
call fcn.100a527b
push eax
call fcn.10003e70
add esp, 0x10
test bl, bl
je 0x1003d44f
mov ax, word [ebp - 0x42c]
mov word [ebp - 0x8a4], ax
xor eax, eax
mov word [ebp - 0x8a2], ax
lea eax, [ebp - 0x8a4]
push eax
push 0x104
push esi
call fcn.100a5206
push eax
call fcn.10003e70
add esp, 0x10
lea eax, [ebp - 0x858]
push eax
push 0x104
push esi
call fcn.100a5206
push eax
call fcn.10003e70
add esp, 0x10
mov ebx, dword [ebp - 0x890]
cmp dword [esi - 4], 1
jle 0x1003d48a
push dword [esi - 0xc]
lea ecx, [ebp - 0x894]
call fcn.10004230
mov esi, dword [ebp - 0x894]
push str.Preferences
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10004380
mov ecx, eax
test ecx, ecx
je 0x1003d84e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x888], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 3
jge 0x1003d4e1
push 0x104
lea ecx, [ebp - 0x888]
call fcn.10004430
mov edi, dword [ebp - 0x888]
cmp dword [edi - 8], 0x104
jl 0x1003d858
mov dword [edi - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x888]
mov word [eax + 0x208], cx
lea eax, [ebp - 0x858]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
call eax
cmp eax, 0x104
jge 0x1003d53d
cmp dword [ebp - 0x424], 0
je 0x1003d53d
lea eax, [ebp - 0x858]
push eax
push 0x104
push edi
call fcn.100a527b
push eax
call fcn.10003e70
add esp, 0x10
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
push eax
call fcn.100041c0
add esp, 4
lea edx, [eax + 0x10]
mov dword [ebp - 0x898], edx
mov eax, dword [ebx + 0x10]
xor edi, edi
mov ecx, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
mov byte [ebp - 4], 4
mov dword [ebp - 0x88c], 1
test eax, eax
je 0x1003d5b1
test edx, edx
je 0x1003d84e
push edx
push dword [ecx + edi*4]
call fcn.100a4c19
mov edx, dword [ebp - 0x898]
add esp, 8
test eax, eax
je 0x1003d5ad
mov eax, dword [ebx + 0x10]
inc edi
mov ecx, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1003d577
mov edi, dword [ebp - 0x88c]
jmp 0x1003d5b6
xor edi, edi
jmp 0x1003d5b6
mov edi, 1
mov byte [ebp - 4], 3
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d5d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1003d6e6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d6e6
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0x14], edi
je 0x1003d60e
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
push eax
call fcn.100041c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebx + 0x10], 4
jmp 0x1003d61e
lea eax, [ebp - 0x888]
push eax
push edi
lea ecx, [ebx + 0xc]
call fcn.10033f20
push 0x60
call fcn.10075b85
mov edi, eax
add esp, 4
mov dword [ebp - 0x8ac], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x1003d67a
push str.Preferences
lea ecx, [ebp - 0x8a8]
call fcn.10003c90
mov ebx, dword [ebp - 0x89c]
lea eax, [ebp - 0x888]
push eax
or ebx, 1
mov byte [ebp - 4], 6
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x89c], ebx
push eax
mov ecx, edi
mov dword [ebp - 0x88c], ebx
call fcn.10034140
mov edi, eax
jmp 0x1003d682
mov ebx, dword [ebp - 0x89c]
xor edi, edi
mov dword [ebp - 0x88c], edi
mov dword [ebp - 4], 3
test bl, 1
je 0x1003d6bb
mov edx, dword [ebp - 0x8a8]
and ebx, 0xfffffffe
mov dword [ebp - 0x89c], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d6bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x890]
test edi, edi
je 0x1003d6ec
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x1003d6d5
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x1003d6ec
lea ecx, [ebp - 0x88c]
push ecx
push eax
mov ecx, ebx
call fcn.1003b2e0
jmp 0x1003d6ec
mov ebx, dword [ebp - 0x890]
push dword [esi - 8]
push esi
call fcn.100a0806
add esp, 8
test eax, eax
js 0x1003d858
cmp eax, dword [esi - 8]
jg 0x1003d858
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x888]
push dword [eax - 8]
push eax
call fcn.100a0806
mov edx, eax
add esp, 8
test edx, edx
js 0x1003d858
mov ecx, dword [ebp - 0x888]
cmp edx, dword [ecx - 8]
jg 0x1003d858
mov dword [ecx - 0xc], edx
or edi, 0xffffffff
mov eax, dword [ebp - 0x888]
xor ecx, ecx
mov byte [ebp - 4], 2
mov word [eax + edx*2], cx
mov eax, edi
mov edx, dword [ebp - 0x888]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d770
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003d78b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x1003d806
cmp dword [ebp - 0x424], 0
je 0x1003d7c0
lea ecx, [ebp - 0x884]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x424], eax
test eax, eax
mov eax, dword [ebp - 0x428]
jne 0x1003d301
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x1003d7e4
cmp eax, 0xffffffff
je 0x1003d7e4
push eax
call esi
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
test eax, eax
je 0x1003d810
cmp eax, 0xffffffff
je 0x1003d810
push eax
call esi
mov dword [ebp - 0x428], 0
jmp 0x1003d810
mov dword [ebp - 0x424], 0
mov edx, dword [ebp - 0x8a0]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003d832
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b61
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003f10
push 0x80070057
call fcn.10003f10
int3