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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47065f
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x496534]
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 dword [ebp - 0x270], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x264], edi
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jle 0x411007
lea ecx, [ebp - 0x2a0]
call fcn.0043ddbe
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], edi
push eax
call fcn.00410720
test eax, eax
je 0x410ffc
mov eax, dword [ebp - 0x298]
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 0x268], esi
test eax, eax
jle 0x4109c2
call fcn.004339ad
mov ecx, eax
test ecx, ecx
je 0x410e59
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x26c], edi
mov byte [ebp - 4], 1
test esi, esi
js 0x410aac
cmp esi, dword [ebp - 0x298]
jge 0x410aac
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.004029e0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 2
mov ecx, str.en_US
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410939
test dx, dx
je 0x410935
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410939
add eax, 4
add ecx, 4
test dx, dx
jne 0x410913
xor eax, eax
jmp 0x41093e
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x410971
mov eax, dword [ebp + 8]
push esi
push dword [eax]
lea eax, [ebp - 0x26c]
push eax
call fcn.00405ae0
mov edi, dword [ebp - 0x26c]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410a16
mov eax, ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41098c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4109a7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
mov eax, dword [ebp - 0x298]
inc esi
mov dword [ebp - 0x268], esi
cmp esi, eax
jl 0x4108b5
xor esi, esi
mov dword [ebp - 0x27c], esi
test eax, eax
jle 0x410e4e
test esi, esi
js 0x410aac
cmp esi, eax
jge 0x410aac
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.004029e0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x288], edi
mov byte [ebp - 4], 3
cmp dword [edi - 0xc], 0
jge 0x410ab1
or eax, 0xffffffff
jmp 0x410acc
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ecx + 0x5c8]
call fcn.00402a50
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ecx + 0x5d0]
call fcn.00402a50
mov dword [ebp - 0x264], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410a6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410a86
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x264]
mov esi, dword [ebp - 0x270]
add esi, 0x5d0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x410f2f
or eax, 0xffffffff
jmp 0x410f4a
call fcn.0043340a
push 0x486ccc
push edi
call fcn.0044e917
add esp, 8
test eax, eax
jne 0x410ac8
or eax, 0xffffffff
jmp 0x410acc
sub eax, edi
sar eax, 1
inc eax
lea ecx, [ebp - 0x288]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00408d40
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x26c]
cmp dword [ebx - 0xc], 0
je 0x410e00
call fcn.004339ad
mov ecx, eax
test ecx, ecx
je 0x410e59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 5
push ebx
call fcn.004029e0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x268], esi
push 1
push 0x4865e8
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00401780
mov eax, dword [ebp + 8]
push dword [ebp - 0x26c]
push dword [eax]
lea eax, [ebp - 0x280]
push eax
call fcn.00405ae0
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0044f210
mov ebx, dword [ebp - 0x280]
lea eax, [ebp - 0x260]
add esp, 0x18
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x410db1
test byte [ebp - 0x260], 0x10
je 0x410bb7
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x410da5
mov eax, dword [ebp - 0x284]
jmp 0x410b90
push 0x5c
push ebx
call fcn.0044e876
add esp, 8
test eax, eax
jne 0x410bcb
or eax, 0xffffffff
jmp 0x410bcf
sub eax, ebx
sar eax, 1
inc eax
lea ecx, [ebp - 0x280]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00408d40
mov esi, dword [ebp - 0x270]
push eax
mov byte [ebp - 4], 7
lea ecx, [esi + 0x5c8]
call fcn.00402a50
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410c1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x234]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x410c24
sub edx, ecx
lea eax, [ebp - 0x234]
sar edx, 1
lea ecx, [esi + 0x5c8]
push edx
push eax
call fcn.00401780
call fcn.004339ad
mov ecx, eax
test ecx, ecx
je 0x410e59
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x274], esi
mov byte [ebp - 4], 8
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x410c91
push 0x100
lea ecx, [ebp - 0x274]
call fcn.00401cb0
mov esi, dword [ebp - 0x274]
push 0
push 0
push 0x100
push esi
push 0
push 0
push 0
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004563a3
push dword [esi - 8]
push esi
call fcn.00451f0d
add esp, 0x2c
test eax, eax
js 0x410e63
cmp eax, dword [esi - 8]
jg 0x410e63
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x268]
mov ecx, dword [esi - 0xc]
mov dword [ebp - 0x264], ecx
test eax, eax
jne 0x410ced
or eax, 0xffffffff
jmp 0x410d13
test ecx, ecx
jns 0x410cf6
or eax, 0xffffffff
jmp 0x410d13
push eax
push esi
call fcn.0044e917
mov ecx, dword [ebp - 0x264]
add esp, 8
test eax, eax
jne 0x410d0f
or eax, 0xffffffff
jmp 0x410d13
sub eax, esi
sar eax, 1
sub ecx, eax
lea eax, [ebp - 0x278]
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.0040d0c0
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 9
call fcn.00402a50
mov byte [ebp - 4], 8
or esi, 0xffffffff
mov edx, dword [ebp - 0x278]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410d5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x274]
push eax
lea ecx, [ecx + 0x5d0]
call fcn.00402a50
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x264], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410d9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410dcd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410deb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x264], 0
jne 0x410e6d
mov ebx, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x27c]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410e39
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x298]
inc esi
mov dword [ebp - 0x27c], esi
cmp esi, eax
jl 0x4109d2
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x410e94
push 0x80004005
call fcn.00401e60
push 0x80070057
call fcn.00401e60
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
jmp 0x410a68
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 8]
push str.en_US
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [ebp - 0x268]
push eax
call fcn.00405ae0
mov esi, dword [ebp - 0x268]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410f01
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x268]
push eax
lea ecx, [edi + 0x5c8]
call fcn.00402a50
push 5
lea ecx, [edi + 0x5d0]
push str.en_US
call fcn.00401eb0
mov edi, 1
jmp 0x410f07
mov edi, dword [ebp - 0x264]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410f22
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x410ffc
jmp 0x410a8c
push 0x486ccc
push eax
call fcn.0044e917
add esp, 8
test eax, eax
jne 0x410f46
or eax, 0xffffffff
jmp 0x410f4a
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x278]
mov ecx, esi
push eax
call fcn.00408d40
mov ecx, dword [ebp - 0x270]
add ecx, 0x5d4
mov byte [ebp - 4], 0xb
push eax
call fcn.00402a50
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410f90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x410f9d
or eax, 0xffffffff
jmp 0x410fb8
push 0x486ccc
push eax
call fcn.0044e917
add esp, 8
test eax, eax
jne 0x410fb4
or eax, 0xffffffff
jmp 0x410fb8
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x278]
mov ecx, esi
push eax
call fcn.0040d0c0
mov ecx, dword [ebp - 0x270]
add ecx, 0x5d8
mov byte [ebp - 4], 0xc
push eax
call fcn.00402a50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410ffc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x2a0]
call fcn.0043ddd5
mov eax, edi
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.0044ae75
mov esp, ebp
pop ebp
ret 4