Function at 0x401e90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a942
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x425008]
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 dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2cc]
push eax
push str..exe
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
xor ecx, ecx
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], cx
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
je 0x4022f8
push 0x41
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00404790
add esp, 0xc
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x2a0]
call fcn.00401630
test al, al
je 0x402223
xor ecx, ecx
mov eax, 0x2aaaaaab
mov dword [ebp - 0x2d4], ecx
mov ecx, dword [0x426514]
sub ecx, dword [0x426510]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2e4], eax
je 0x402223
xor ecx, ecx
mov edx, eax
mov dword [ebp - 0x2d8], ecx
nop word [eax + eax]
mov eax, dword [0x426510]
xor esi, esi
mov edi, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x2e0], eax
test eax, eax
je 0x402006
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401fe5
test dl, dl
je 0x401fe1
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401fe5
add ecx, 2
add eax, 2
test dl, dl
jne 0x401fc5
xor eax, eax
jmp 0x401fea
sbb eax, eax
or eax, 1
test eax, eax
je 0x402025
inc esi
add edi, 4
cmp esi, dword [ebp - 0x2e0]
jb 0x401fc0
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2d4]
add ecx, 0xc
inc eax
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], eax
cmp eax, edx
jb 0x401fa0
jmp 0x402223
mov eax, dword [ebp - 0x2d4]
cmp eax, 0xffffffff
je 0x402223
test eax, eax
je 0x402223
xorps xmm0, xmm0
mov dword [ebp - 0x318], eax
lea esi, [ebp - 0x2a0]
mov dword [ebp - 0x304], 0
movups xmmword [ebp - 0x314], xmm0
mov dword [ebp - 0x300], 0
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402070
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x402642
mov dword [ebp - 0x300], 7
cmp esi, 8
jae 0x4020ce
mov dword [ebp - 0x304], esi
lea eax, [ebp - 0x2a0]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00405c30
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x314], ax
mov ecx, dword [ebp - 0x318]
jmp 0x402187
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4020ee
mov eax, 0x7fffffff
mov dword [ebp - 0x2d8], 0x7ffffffe
add eax, eax
jmp 0x402116
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
mov dword [ebp - 0x2d8], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x40263d
add eax, eax
cmp eax, 0x1000
jb 0x40213d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40263d
push ecx
call fcn.004030ef
add esp, 4
test eax, eax
je 0x402638
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x402150
test eax, eax
je 0x40214e
push eax
call fcn.004030ef
add esp, 4
mov edi, eax
jmp 0x402150
xor edi, edi
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x304], esi
add esi, esi
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x2a0]
push esi
push eax
push edi
mov dword [ebp - 0x314], edi
call fcn.00405c30
mov ecx, dword [ebp - 0x2d4]
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x5c]
je 0x4021cf
movups xmm0, xmmword [ebp - 0x314]
mov dword [eax], ecx
mov ecx, 7
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
movups xmmword [eax + 4], xmm0
movq xmm0, qword [ebp - 0x304]
movq qword [eax + 0x14], xmm0
xor eax, eax
add dword [ebp - 0x60], 0x1c
mov word [ebp - 0x314], ax
jmp 0x4021e5
lea ecx, [ebp - 0x318]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.00402e30
mov ecx, dword [ebp - 0x300]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x402223
mov edx, dword [ebp - 0x314]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402219
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402638
push ecx
push edx
call fcn.00403485
add esp, 8
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401f37
mov ecx, dword [ebp - 0x60]
mov eax, 0x92492493
mov esi, dword [ebp - 0x64]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x4022f4
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
jb 0x40226d
mov ecx, dword [ecx]
call fcn.00401d30
mov ecx, dword [ebp - 0x64]
mov edi, eax
test ecx, ecx
je 0x4022d6
mov edx, dword [ebp - 0x60]
push ecx
call fcn.00402ca0
mov ecx, dword [ebp - 0x5c]
mov eax, 0x92492493
mov esi, dword [ebp - 0x64]
add esp, 4
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4022cc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402638
push ecx
push esi
call fcn.00403485
add esp, 8
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 - 0x14]
xor ecx, ebp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x402371
push str.No_valid_games_found
call fcn.0040b519
mov ecx, dword [ebp - 0x64]
add esp, 4
test ecx, ecx
je 0x402367
mov edx, dword [ebp - 0x60]
push ecx
call fcn.00402ca0
mov esi, dword [ebp - 0x64]
mov eax, 0x92492493
mov ecx, dword [ebp - 0x5c]
add esp, 4
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x40235d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402638
push ecx
push esi
call fcn.00403485
add esp, 8
mov eax, 1
jmp 0x4022d8
xor ecx, ecx
mov dword [ebp - 0x2d4], ecx
test eax, eax
je 0x4023e0
xor edi, edi
nop
lea eax, [edi + 4]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x40238d
mov eax, dword [eax]
push eax
mov eax, dword [esi + edi]
mov esi, dword [ebp - 0x2d4]
push dword [eax*4 + 0x420c60]
push esi
push str.__d_:__S___s__n
call fcn.00401b70
mov ecx, dword [ebp - 0x60]
inc esi
mov dword [ebp - 0x2d4], esi
mov eax, 0x92492493
mov esi, dword [ebp - 0x64]
add esp, 0x10
sub ecx, esi
add edi, 0x1c
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x2d4]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x402380
nop dword [eax + eax]
push str.Pick_your_game:
call fcn.00401ba0
add esp, 4
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov eax, dword [ebp - 0x2dc]
or eax, 1
mov dword [ebp - 0x2ec], 0
movups xmmword [ebp - 0x2fc], xmm0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], eax
nop dword [eax + eax]
call fcn.0040b75e
mov cl, al
mov byte [ebp - 0x2e4], cl
cmp cl, 0xa
jne 0x402500
call fcn.0040b5e6
cmp dword [ebp - 0x2e8], 0x10
lea esi, [ebp - 0x2fc]
mov edi, eax
lea eax, [ebp - 0x2d0]
cmovae esi, dword [ebp - 0x2fc]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0040b2f7
add esp, 0xc
mov dword [ebp - 0x2e0], eax
cmp esi, dword [ebp - 0x2d0]
je 0x402647
cmp dword [edi], 0x22
je 0x402651
and dword [ebp - 0x2dc], 0xfffffffe
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2e8]
cmp ecx, 0x10
jb 0x4024d9
mov edx, dword [ebp - 0x2fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4024cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265b
push ecx
push edx
call fcn.00403485
add esp, 8
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
mov dword [ebp - 4], 1
jmp 0x402592
mov edx, dword [ebp - 0x2ec]
mov esi, dword [ebp - 0x2e8]
cmp edx, esi
jae 0x402536
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x2fc]
cmovae eax, dword [ebp - 0x2fc]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x402430
push dword [ebp - 0x2e4]
mov byte [ebp - 0x2d4], 0
push dword [ebp - 0x2d4]
push ecx
lea ecx, [ebp - 0x2fc]
call fcn.00402b60
jmp 0x402430
mov ecx, dword [ebp - 0x60]
mov eax, 0x92492493
mov edi, dword [ebp - 0x64]
sub ecx, edi
mov esi, dword [ebp - 0x2e0]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x4023e0
lea ecx, [esi*8]
sub ecx, esi
inc ecx
cmp dword [edi + ecx*4 + 0x14], 8
lea ecx, [edi + ecx*4]
jb 0x4025d1
mov ecx, dword [ecx]
call fcn.00401d30
mov ecx, dword [ebp - 0x64]
mov edi, eax
test ecx, ecx
je 0x4022d6
mov edx, dword [ebp - 0x60]
push ecx
call fcn.00402ca0
mov ecx, dword [ebp - 0x5c]
mov eax, 0x92492493
mov esi, dword [ebp - 0x64]
add esp, 4
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4022cc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022cc
call fcn.0040b998
call fcn.00401c80
call fcn.00401d20
push str.invalid_stoul_argument
call fcn.00403ef7
push str.stoul_argument_out_of_range
call fcn.00403f37
call fcn.0040b998
int3