Function at 0x485970
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x28c
lea eax, [esp + 0x4c]
mov dword [0x78506c], 0
mov dword [0x4d67b4], 0x23
push ebp
push eax
push str.cars.
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4859c7
push 0
push str.Cant_find_any_car_directories
push str.ERROR
call fcn.00452f30
add esp, 0xc
mov byte [0x785074], 1
xor eax, eax
pop ebp
add esp, 0x28c
ret
push ebx
push esi
push edi
lea ecx, [esp + 0x5c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x485afd
test byte [esp + 0x5c], 0x10
je 0x4859ca
mov esi, 0x4ba454
lea eax, [esp + 0x88]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x485a19
test cl, cl
je 0x485a15
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x485a19
add eax, 2
add esi, 2
test cl, cl
jne 0x4859f1
xor eax, eax
jmp 0x485a1e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4859ca
mov esi, 0x4ba450
lea eax, [esp + 0x88]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x485a56
test cl, cl
je 0x485a52
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x485a56
add eax, 2
add esi, 2
test cl, cl
jne 0x485a2e
xor eax, eax
jmp 0x485a5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4859ca
lea eax, [esp + 0x88]
lea ecx, [esp + 0x1c]
push eax
push str.cars_sParameters.txt
push ecx
call fcn.004a4ca4
lea edx, [esp + 0x28]
push 0x4ba3e8
push edx
call fcn.00452340
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4859ca
mov esi, 0x4b4218
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x88]
push ecx
add edx, 5
push eax
push edx
call fcn.004af360
add esp, 0xc
test eax, eax
je 0x485ae6
add esi, 4
cmp esi, str.carsq
jl 0x485a9b
mov eax, dword [0x4d67b4]
push ebx
inc eax
mov dword [0x4d67b4], eax
call fcn.004a4e34
add esp, 4
jmp 0x4859ca
push ebx
call fcn.004a4e34
add esp, 4
push ebx
call fcn.004a4e34
add esp, 4
jmp 0x4859ca
mov eax, dword [0x4d67b4]
cmp eax, 0x23
jge 0x485b11
mov eax, 0x23
mov dword [0x4d67b4], eax
mov ecx, dword [0x4d67b0]
xor ebp, ebp
cmp ecx, ebp
jne 0x485b3d
push eax
call fcn.00414f60
mov ecx, dword [0x4d67b4]
mov dword [0x4d67b0], eax
push ecx
push eax
call fcn.00485f00
mov eax, dword [0x4d67b4]
add esp, 0xc
lea edx, [eax*4]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x82db4c], eax
mov dword [esp + 0x10], ebp
mov esi, 0x4b4218
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push eax
push str._sParameters.txt
push ecx
call fcn.004a4ca4
lea edx, [esp + 0x28]
push 0x4b3d20
push edx
call fcn.00452340
mov edi, eax
add esp, 0x14
test edi, edi
je 0x485c6f
push 0
push edi
call fcn.004540d0
add esp, 8
test eax, eax
jne 0x485ba9
mov eax, dword [0x4d67b0]
mov dword [eax + ebp + 0x910], 1
jmp 0x485bba
mov ecx, dword [0x4d67b0]
mov dword [ecx + ebp + 0x910], 0
push edi
lea edx, [esp + 0x20]
push 0x4ba3e8
push edx
call fcn.004a5f21
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x485c02
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x19c]
push eax
push str.Could_not_load_parameters_file:_n__s__n
push ecx
call fcn.004a4ca4
lea edx, [esp + 0x1a8]
push ebx
push edx
push str.Warning
call fcn.00452f30
add esp, 0x18
jmp 0x485c6f
mov eax, dword [0x82db4c]
mov ecx, dword [esp + 0x10]
mov dword [0x82db80], 1
push ebx
mov dword [eax], ecx
call fcn.004810d0
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [0x4d67b0]
lea eax, [edx + ebp + 0x4c0]
push eax
call fcn.004af360
add esp, 0x10
test eax, eax
je 0x485c66
mov ecx, dword [0x4d67b0]
mov eax, 1
mov dword [ecx + ebp + 0x914], eax
mov edx, dword [0x4d67b0]
mov dword [edx + ebp + 0x910], eax
push ebx
call fcn.004a4e34
add esp, 4
mov edi, dword [esp + 0x10]
add esi, 4
inc edi
add ebp, 0x918
cmp esi, str.carsq
mov dword [esp + 0x10], edi
jl 0x485b5a
lea eax, [esp + 0x5c]
mov dword [esp + 0x14], 0x23
push eax
push str.cars.
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x13e48
mov ecx, dword [esp + 0x14]
mov eax, dword [0x4d67b4]
cmp ecx, eax
jge 0x485ee5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x485ee5
test byte [esp + 0x5c], 0x10
je 0x485cb1
mov esi, 0x4ba454
lea eax, [esp + 0x88]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x485d15
test cl, cl
je 0x485d11
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x485d15
add eax, 2
add esi, 2
test cl, cl
jne 0x485ced
xor eax, eax
jmp 0x485d1a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x485cb1
mov esi, 0x4ba450
lea eax, [esp + 0x88]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x485d52
test cl, cl
je 0x485d4e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x485d52
add eax, 2
add esi, 2
test cl, cl
jne 0x485d2a
xor eax, eax
jmp 0x485d57
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x485cb1
lea eax, [esp + 0x88]
lea ecx, [esp + 0x1c]
push eax
push str.cars_sParameters.txt
push ecx
call fcn.004a4ca4
lea edx, [esp + 0x28]
push 0x4b3d20
push edx
call fcn.00452340
mov esi, eax
add esp, 0x14
test esi, esi
je 0x485cb1
push 0
push esi
call fcn.004540d0
add esp, 8
test eax, eax
jne 0x485db8
mov eax, dword [0x4d67b0]
mov ecx, dword [esp + 0x10]
mov ebp, 1
mov dword [ecx + eax + 0x910], ebp
jmp 0x485dd2
mov edx, dword [0x4d67b0]
mov eax, dword [esp + 0x10]
mov ebp, 1
mov dword [eax + edx + 0x910], 0
push esi
lea ecx, [esp + 0x20]
push 0x4ba3e8
push ecx
call fcn.004a5f21
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x485df9
push eax
call fcn.004a4e34
add esp, 4
jmp 0x485cb1
mov esi, 0x4b4218
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x88]
push ecx
add edx, 5
push eax
push edx
call fcn.004af360
add esp, 0xc
test eax, eax
je 0x485ece
add esi, 4
cmp esi, str.carsq
jl 0x485dfe
mov ecx, dword [0x82db4c]
mov edx, dword [esp + 0x14]
mov dword [0x82db80], ebp
push ebx
mov dword [ecx], edx
call fcn.004810d0
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x20]
push eax
push str.cars_s
push ecx
call fcn.004a4ca4
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x4d67b0]
lea edx, [esp + 0x2c]
not ecx
dec ecx
push ecx
lea ecx, [esi + eax + 0x4c0]
push edx
push ecx
call fcn.004af360
add esp, 0x1c
test eax, eax
je 0x485ead
mov edx, dword [0x4d67b0]
mov dword [esi + edx + 0x914], ebp
mov eax, dword [0x4d67b0]
mov dword [esi + eax + 0x910], ebp
mov edi, dword [esp + 0x14]
add esi, 0x918
inc edi
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call fcn.004a4e34
add esp, 4
jmp 0x485cb1
push ebx
call fcn.004a4e34
add esp, 4
push ebx
call fcn.004a4e34
add esp, 4
jmp 0x485cb1
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x28c
ret