Function at 0x4125a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b81f1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ff1a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
add esi, 0xfc
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x38], edi
mov ebx, edx
je 0x412625
cmp dword [esi + 0x14], 8
jb 0x4125f1
mov eax, dword [esi]
jmp 0x4125f3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x412625
xor ebx, ebx
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push esi
mov ecx, edi
mov word [edi], ax
call fcn.0040f1f0
jmp 0x4127dc
call fcn.0042c710
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x412667
lea ebx, [ebp - 0x2c]
call fcn.00411bf0
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00409ad0
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x41265f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x1c], ebx
jmp 0x4127b3
lea eax, [ebp - 0x2c]
push eax
call fcn.00411970
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00409ad0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x412695
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x2c], ax
mov eax, dword [ebx + 0x10]
mov edx, 7
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
jne 0x4126d1
push 0xffffffffffffffff
mov dword [edi + 0x14], edx
push ecx
mov dword [edi + 0x10], ecx
xor edx, edx
push esi
mov ecx, edi
mov word [edi], dx
call fcn.0040f1f0
mov dword [ebp - 4], 0
jmp 0x4127df
ja 0x4126dd
push str.invalid_string_position
call fcn.0048f3ef
mov ecx, dword [ebx + 0x14]
cmp ecx, 8
jb 0x4126e9
mov eax, dword [ebx]
jmp 0x4126eb
mov eax, ebx
mov edx, 0x5c
cmp dx, word [eax]
je 0x41271a
cmp ecx, 8
jb 0x4126fe
mov eax, dword [ebx]
jmp 0x412700
mov eax, ebx
mov ecx, 0x2f
cmp cx, word [eax]
je 0x41271a
push 0x4c4f30
mov ecx, esi
call fcn.00410c80
mov ecx, eax
jmp 0x41271c
mov ecx, esi
push 0xffffffffffffffff
push 0
push ebx
call fcn.00410cb0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040f1f0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10c]
dec eax
cmp dword [esi + 0x10], eax
ja 0x41274b
push str.invalid_string_position
call fcn.0048f3ef
cmp dword [esi + 0x14], 8
jb 0x412755
mov ecx, dword [esi]
jmp 0x412757
mov ecx, esi
mov edx, 0x5c
cmp dx, word [ecx + eax*2]
je 0x412779
cmp dword [esi + 0x14], 8
jb 0x41276c
mov ecx, dword [esi]
jmp 0x41276e
mov ecx, esi
mov edx, 0x2f
cmp dx, word [ecx + eax*2]
jne 0x4127c0
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00413c40
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00409ad0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4127ac
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x1c], 0
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
xor ebx, ebx
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push esi
mov ecx, edi
mov word [edi], ax
call fcn.0040f1f0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004911d1
mov esp, ebp
pop ebp
ret