Function at 0x4559f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4983f6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x27c]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
cmp edi, esi
je 0x455db3
cmp dword [edi + 0x18], esi
je 0x455a8f
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
lea ecx, [edi + 4]
push esi
xor edx, edx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], esi
push ecx
mov word [eax + 4], dx
call fcn.00402a90
mov dword [esp + 0x290], esi
mov dword [esp + 0x290], 0xffffffff
call fcn.004568b0
cmp eax, esi
je 0x455db3
mov ecx, dword [edi + 0x104]
sub ecx, dword [edi + 0x100]
lea ebp, [edi + 0xf4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x455ad3
push ebx
mov esi, ebp
call fcn.00457ca0
test eax, eax
je 0x455ad3
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
jmp 0x455db5
lea ecx, [esp + 0x40]
push ecx
call fcn.00455de0
mov edi, 1
mov dword [esp + 0x274], edi
cmp dword [esp + 0x54], 0
je 0x455b35
lea edx, [esp + 0x24]
push edx
call fcn.00407e10
mov byte [esp + 0x274], 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0042b390
push ebx
lea esi, [esp + 0x28]
call fcn.00457ca0
test eax, eax
je 0x455b23
mov dword [esp + 0x18], edi
mov byte [esp + 0x274], 1
lea edx, [esp + 0x24]
push edx
call fcn.004287f0
or esi, 0xffffffff
mov dword [esp + 0x274], esi
cmp dword [esp + 0x58], 8
jb 0x455b53
mov eax, dword [esp + 0x44]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
cmp dword [esp + 0x18], edi
je 0x455da3
mov ebx, dword [esp + 0x20]
sub esp, 0x18
lea edx, [ebx + 0x40]
mov eax, esp
mov dword [esp + 0x34], esp
push edx
push eax
call fcn.00458400
mov dword [esp + 0x28c], 3
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x290], esi
call fcn.00456070
mov dword [esp + 0x274], 4
cmp dword [esp + 0x38], 0
je 0x455d6d
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x455caa
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor esi, esi
add ecx, edx
je 0x455caa
xor edi, edi
nop
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x66]
push eax
mov word [esp + 0x68], dx
call fcn.00476ef0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp esi, ecx
jb 0x455c3c
call fcn.004726ec
mov eax, dword [ebp + 0xc]
add eax, edi
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x455c50
mov eax, dword [eax + 4]
jmp 0x455c53
add eax, 4
cmp dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
jae 0x455c61
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x455c85
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x455da9
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
add edi, 0x1c
cmp esi, ecx
jb 0x455c00
mov esi, 2
cmp dword [esp + 0x18], esi
je 0x455d6d
lea edx, [esp + 0x40]
push edx
mov edi, ebx
call fcn.00455de0
mov byte [esp + 0x274], 5
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x66]
push ecx
mov word [esp + 0x68], ax
call fcn.00476ef0
mov ecx, dword [esp + 0x50]
mov edi, 8
add esp, 0xc
cmp dword [esp + 0x58], edi
jae 0x455cfa
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x455d08
lea eax, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x455d3b
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x455d3b
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x455d3b
mov dword [esp + 0x18], esi
mov byte [esp + 0x274], 4
cmp dword [esp + 0x58], edi
jb 0x455d56
mov edx, dword [esp + 0x44]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov dword [esp + 0x274], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x455d8c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
mov eax, dword [esp + 0x18]
jmp 0x455db5
mov dword [esp + 0x18], 2
jmp 0x455d6d
mov eax, esi
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00471eba
add esp, 0x264
ret 4