Function at 0x490b60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4cf9df
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
mov eax, dword [esp + 0x13c]
mov edi, dword [esp + 0x138]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], edx
call dword [0x4d5364]
test eax, eax
je 0x490fe6
lea ecx, [esp + 0x4c]
call fcn.004a5580
push 0x4ec138
push esi
mov dword [esp + 0x134], 0
call fcn.004a9e31
mov esi, eax
add esp, 8
test esi, esi
je 0x490fae
push 1
push esi
lea ecx, [esp + 0x54]
call fcn.004a5610
push esi
mov bl, al
call fcn.004a945d
add esp, 4
test bl, bl
je 0x490fae
lea ecx, [esp + 0x4c]
call fcn.004a4a60
mov esi, eax
test esi, esi
je 0x490fa5
push 0x800
call fcn.004a895b
add esp, 4
push edi
mov ecx, esi
mov ebp, eax
call fcn.004a4a90
test eax, eax
je 0x490f98
mov ecx, eax
call fcn.004a4a60
test eax, eax
mov dword [esp + 0x14], eax
je 0x490f98
mov ecx, dword [esp + 0x14]
mov eax, 0x4e32ac
lea esi, [esp + 0xc8]
call fcn.00490b00
mov byte [esp + 0x12c], 1
cmp dword [esp + 0xdc], 0
jbe 0x490f43
push 0x800
push 0
push ebp
call fcn.004b0720
add esp, 0xc
cmp dword [esp + 0xe0], 0x10
jb 0x490caf
mov ebx, dword [esp + 0xcc]
test ebx, ebx
jne 0x490cb6
xor ebp, ebp
jmp 0x490cf6
lea ebx, [esp + 0xcc]
mov edi, dword [0x4d52d4]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
mov esi, eax
lea eax, [esi + 1]
cmp eax, 0x400
jg 0x490cf6
lea ecx, [esi + esi + 2]
push ecx
push 0
push ebp
call fcn.004b0720
add esp, 0xc
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.004062e0
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x44]
push ecx
lea ebx, [esp + 0x3c]
mov esi, eax
call fcn.00482e40
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x490d27
cmp eax, dword [esp + 0x18]
je 0x490d2c
call fcn.004aa383
cmp dword [esi + 4], edi
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x490d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x490e65
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.004062e0
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x134], 2
call fcn.00413fc0
mov byte [esp + 0x12c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, str.active
lea esi, [esp + 0x100]
call fcn.00490b00
mov ecx, 0x4e2f18
mov edi, esi
mov byte [esp + 0x12c], 3
call fcn.00491010
test al, al
je 0x490de7
mov ecx, 0x4e30ad
call fcn.00491010
test al, al
je 0x490e59
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.004062e0
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x134], 4
call fcn.00413fc0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 3
call fcn.004029a0
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x490e59
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004062e0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x134], 5
call fcn.00413fc0
lea ecx, [esp + 0x24]
call fcn.004029a0
lea ecx, [esp + 0x100]
jmp 0x490f3e
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004062e0
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 4]
lea eax, [esp + 0x3c]
push eax
lea ebx, [esp + 0x2c]
mov esi, edx
call fcn.00482e40
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x490e96
cmp eax, dword [esp + 0x1c]
je 0x490e9b
call fcn.004aa383
cmp dword [esi + 4], edi
mov eax, dword [esp + 0x28]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490ec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x490f43
mov ecx, dword [esp + 0x14]
mov eax, str.active
lea esi, [esp + 0xe4]
call fcn.00490b00
mov ecx, 0x4e2f18
mov edi, esi
mov byte [esp + 0x12c], 6
call fcn.00491010
test al, al
je 0x490f00
mov ecx, 0x4e30ad
call fcn.00491010
test al, al
je 0x490f37
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x490f37
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004062e0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x134], 7
call fcn.00413fc0
lea ecx, [esp + 0x20]
call fcn.004029a0
lea ecx, [esp + 0xe4]
call fcn.00406880
mov byte [esp + 0x12c], 0
cmp dword [esp + 0xe0], 0x10
jb 0x490f65
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004a91d0
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
call fcn.004a4ad0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x490c5b
test ebp, ebp
je 0x490fa5
push ebp
call fcn.004a92e9
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.004a4990
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x50c468
mov dword [esp + 0x4c], vtable.TiXmlDocument.0
je 0x490fd8
push eax
call fcn.004a92e9
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.004a5130
mov eax, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004a91d5
add esp, 0x11c
ret