Function at 0x43b5d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506d24
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 1
cmp eax, esi
jne 0x43b703
lea eax, [esp + 0x10]
push 0x50fe3c
push eax
call fcn.0045b262
add esp, 8
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b642
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x43b68e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x43b68e
cmp dword [ebp + 0x10], ebx
jbe 0x43b68e
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0046405d
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x48], 1
call fcn.00407fc0
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b68e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x54f524], 1
mov esi, dword [esp + 0x10]
jne 0x43b6b5
or dword [0x54f524], 1
push 0x50a9e0
mov dword [0x54f528], ebx
call fcn.004cb9f4
add esp, 4
push 0x54f528
mov eax, esi
call fcn.0040f5d0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b6e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x43b86e
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x2c], 0x3b
mov dword [esp + 0x30], edi
cmp eax, edi
je 0x43b736
cmp dword [ebp + 0x10], edi
jbe 0x43b736
mov ecx, dword [eax + 4]
call fcn.0040c5f0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
test byte [0x54f524], 1
jne 0x43b758
or dword [0x54f524], esi
push 0x50a9e0
mov dword [0x54f528], edi
call fcn.004cb9f4
add esp, 4
lea esi, [esp + 0x2c]
mov eax, 0x54f528
call fcn.0040f340
test eax, eax
jne 0x43b7ad
push 0x5165c0
call fcn.00401f50
mov edx, str.script_pop_checker
mov ecx, eax
call fcn.00401fd0
add esp, 4
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
xor eax, eax
mov dword [esp + 0x48], 2
cmp ecx, edi
je 0x43b7f5
call fcn.0040c000
jmp 0x43b7f5
push 0x5195ec
call fcn.00401f50
mov edx, str.script_pop_checker
mov ecx, eax
call fcn.00401fd0
add esp, 4
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 3
cmp ecx, edi
je 0x43b7f3
mov eax, 1
call fcn.0040c000
jmp 0x43b7f5
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040ed50
cmp dword [ebp + 0x1c], edi
jbe 0x43b854
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43b854
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], 4
cmp eax, edi
je 0x43b842
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00431080
jmp 0x43b844
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040ed50
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 3
jne 0x43ba94
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0
cmp ebx, 2
jb 0x43b9f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43b9f5
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0046405d
lea ecx, [esi + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 5
call fcn.0046405d
add esp, 0x10
mov byte [esp + 0x48], 6
mov dword [esp + 0x18], 0x2710
cmp ebx, 3
jb 0x43b8dc
mov ecx, dword [esi + 0x1c]
call fcn.0040c5f0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov ecx, str.2.0.0.2170
call fcn.004085e0
mov byte [esp + 0x48], 7
cmp ebx, 4
jb 0x43b922
lea ecx, [esi + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0046405d
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x48], 8
call fcn.00407fc0
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 7
call fcn.004087f0
mov dword [esp + 0x1c], 0x21
cmp ebx, 5
jb 0x43b93b
mov ecx, dword [esi + 0x34]
call fcn.0040c5f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 4
cmp ebx, 6
jb 0x43b954
mov ecx, dword [esi + 0x40]
call fcn.0040c5f0
mov dword [esp + 0x20], eax
mov edi, 2
cmp ebx, 7
jb 0x43b968
mov ecx, dword [esi + 0x4c]
call fcn.0040c5f0
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.0040f310
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.0040f430
xor esi, esi
cmp eax, esi
jne 0x43b9ae
push 0x5165d0
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
jmp 0x43b9d3
cmp eax, 0x195
jne 0x43b9da
push 0x519598
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
mov dword [esp + 0x30], 1
mov dword [esp + 0x14], esi
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004087f0
lea ecx, [esp + 0x24]
call fcn.004087f0
lea ecx, [esp + 0x28]
call fcn.004087f0
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], 9
test ecx, ecx
je 0x43ba21
mov eax, dword [esp + 0x10]
call fcn.0040c000
jmp 0x43ba23
xor eax, eax
mov ecx, dword [ebp + 0x14]
or edi, 0xffffffff
push eax
mov dword [esp + 0x4c], edi
call fcn.0040ed50
cmp dword [ebp + 0x1c], 0
jbe 0x43ba7a
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x43ba7a
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], 0xa
test ecx, ecx
je 0x43ba6c
mov eax, dword [esp + 0x2c]
call fcn.0040c000
jmp 0x43ba6e
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x4c], edi
call fcn.0040ed50
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 4
jne 0x43bb5b
call fcn.0040f310
call fcn.0040f660
test eax, eax
je 0x43baee
push 0x516608
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
add esp, 4
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 0xb
test ecx, ecx
je 0x43bb31
mov eax, esi
call fcn.0040c000
jmp 0x43bb33
push 0x5195f8
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
add esp, 4
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 0xc
test ecx, ecx
je 0x43bb31
xor eax, eax
call fcn.0040c000
jmp 0x43bb33
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040ed50
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 5
jne 0x43bbc2
call fcn.0040f310
call fcn.0040f690
push 0x54cfe0
push 0x10
test eax, eax
je 0x43bb98
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 0xd
test ecx, ecx
je 0x43bb31
mov eax, esi
call fcn.0040c000
jmp 0x43bb33
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 0xe
test ecx, ecx
je 0x43bb31
xor eax, eax
call fcn.0040c000
jmp 0x43bb33
cmp eax, 6
jne 0x43bbe8
call fcn.0040f310
call fcn.0040f6c0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 7
jne 0x43bc49
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], 0xf
test esi, esi
je 0x43bc1c
call fcn.0043aa50
mov ecx, esi
call fcn.0040c000
jmp 0x43bc1e
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040ed50
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.00460cc8
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18