Function at 0x482410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3bd1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4eb6b8]
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 eax, dword [ebp + 8]
mov edi, ecx
lea ebx, [edi + 0xfc]
mov esi, edx
mov dword [ebp - 0x30], 0
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
je 0x48249d
cmp dword [ebx + 0x14], 8
jb 0x482468
mov eax, dword [ebx]
jmp 0x48246a
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x48249d
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push edi
mov word [esi], cx
push ebx
or eax, 0xffffffff
mov ecx, esi
call fcn.004138e0
jmp 0x482648
call fcn.004878c0
lea edx, [ebp - 0x2c]
mov ecx, edi
test eax, eax
je 0x4824e1
call fcn.00481f10
mov dword [ebp - 4], 1
mov edi, eax
mov esi, ebx
call fcn.00413650
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4824d6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
jmp 0x48261a
call fcn.00481c90
mov dword [ebp - 4], 2
mov edi, eax
mov esi, ebx
call fcn.00413650
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x48250c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
mov esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x10]
xor edi, edi
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp eax, edi
jne 0x482534
mov esi, dword [ebp - 0x34]
mov dword [esi + 0x14], ecx
jmp 0x482634
ja 0x482540
push str.invalid_string_position
call fcn.0049af59
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x48254c
mov eax, dword [esi]
jmp 0x48254e
mov eax, esi
mov edx, 0x5c
cmp dx, word [eax]
je 0x482580
cmp ecx, 8
jb 0x482561
mov eax, dword [esi]
jmp 0x482563
mov eax, esi
mov ecx, 0x2f
cmp cx, word [eax]
je 0x482580
push ebx
mov eax, 0x4cccdc
call fcn.00410ca0
push edi
mov ecx, eax
push esi
mov esi, ecx
jmp 0x482584
push edi
push esi
mov esi, ebx
or eax, 0xffffffff
call fcn.004136c0
push edi
push eax
or eax, 0xffffffff
mov ecx, ebx
call fcn.004138e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10c]
dec eax
cmp dword [ebx + 0x10], eax
ja 0x4825b1
push str.invalid_string_position
call fcn.0049af59
mov edx, dword [ebx + 0x14]
cmp edx, 8
jb 0x4825bd
mov ecx, dword [ebx]
jmp 0x4825bf
mov ecx, ebx
mov esi, 0x5c
cmp si, word [ecx + eax*2]
je 0x4825e0
cmp edx, 8
jb 0x4825d3
mov ecx, dword [ebx]
jmp 0x4825d5
mov ecx, ebx
mov edx, 0x2f
cmp dx, word [ecx + eax*2]
jne 0x482628
push eax
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, ebx
call fcn.0046fe00
mov dword [ebp - 4], 3
mov edi, eax
mov esi, ebx
call fcn.00413650
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x482614
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov esi, dword [ebp - 0x34]
mov dword [esi + 0x14], 7
xor edi, edi
xor eax, eax
mov dword [esi + 0x10], edi
push edi
mov word [esi], ax
push ebx
or eax, 0xffffffff
mov ecx, esi
call fcn.004138e0
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], 1
mov eax, esi
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.0049b315
mov esp, ebp
pop ebp
ret 4