Function at 0x45bd90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49a640
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x64], ebx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4a5b20
call fcn.004087d0
mov byte [esp + 0x64], 1
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x45c0a2
push 0x4aaa8c
push 0x18673
push ecx
lea ecx, [esp + 0x20]
call fcn.0045e330
add esp, 0xc
test eax, eax
je 0x45c0a2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x45c0a2
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp eax, 1
je 0x45be3b
lea edi, [ebx + 8]
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x14]
call fcn.00404e20
lea ebp, [ebx + 7]
jmp 0x45c0b6
push ebx
xor ecx, ecx
mov ebp, 7
push 0x4a5b20
lea esi, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
call fcn.00402bd0
mov byte [esp + 0x64], 2
mov ecx, esi
call fcn.0040de70
test eax, eax
jne 0x45beab
lea edi, [ebp - 4]
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], 8
jb 0x45be8a
mov edx, dword [esp + 0x24]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x14]
call fcn.00404e20
jmp 0x45c0b6
push 0xf
push 0x4aaa94
lea eax, [esp + 0x28]
call fcn.004037d0
mov esi, 8
cmp dword [esp + 0x34], ebx
je 0x45c067
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x45bed8
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c067
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x38], esi
jae 0x45befd
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00430440
add esp, 0xc
test eax, eax
je 0x45bf2b
mov eax, dword [esp + 0x1c]
cmp eax, 0xd0000
ja 0x45bf69
jne 0x45bf2b
cmp dword [esp + 0x18], 0x3e80000
jae 0x45bf69
mov edi, 5
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], esi
jb 0x45bf48
mov eax, dword [esp + 0x24]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x14]
call fcn.00404e20
jmp 0x45c0b6
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x45bf77
lea eax, [esp + 0x24]
call fcn.0046ce70
test eax, eax
jne 0x45bf91
lea edi, [eax + 6]
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], esi
jmp 0x45be7b
lea ecx, [esp + 0x3c]
push ecx
mov edi, str.__repair__typegf
lea ecx, [esp + 0x24]
call fcn.00402db0
add esp, 4
mov byte [esp + 0x64], 3
push 1
push 1
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
xor edx, edx
mov dword [eax + 0x18], ebp
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], dx
call fcn.00402a90
mov byte [esp + 0x88], 4
mov byte [esp + 0x88], 3
call fcn.00420300
add esp, 0x24
neg eax
sbb eax, eax
add eax, 2
mov edi, eax
mov byte [esp + 0x64], 2
cmp dword [esp + 0x54], esi
jb 0x45c00b
mov edx, dword [esp + 0x40]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], esi
jb 0x45c032
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c0b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45c0b6
mov edi, 4
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], esi
jb 0x45c084
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x14]
call fcn.00404e20
jmp 0x45c0b6
mov edi, 7
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x14]
call fcn.00404e20
mov ebp, edi
push edi
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push 3
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x4aaa8c
mov word [esi + 4], ax
call fcn.00402bd0
mov byte [esp + 0x84], 6
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x58], esp
push 4
xor ecx, ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push str.bdoc
mov word [esi + 4], cx
call fcn.00402bd0
mov byte [esp + 0xa0], 7
mov byte [esp + 0xa0], bl
call fcn.00404570
add esp, 0x3c
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.00404e20
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00471eba
add esp, 0x54
ret 4