Function at 0x486d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0d93
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4f3168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x4c], eax
call dword [0x4b42d0]
test eax, eax
je 0x48713e
lea ecx, [ebp - 0xdc]
call fcn.00487d20
push 0x4befac
push esi
mov dword [ebp - 4], 0
call fcn.00491094
mov esi, eax
add esp, 8
test esi, esi
je 0x487107
push 1
push esi
lea ecx, [ebp - 0xdc]
call fcn.00488ca0
push esi
mov bl, al
call fcn.0049007c
add esp, 4
test bl, bl
je 0x487107
lea ecx, [ebp - 0xdc]
call fcn.00488bd0
mov esi, eax
test esi, esi
je 0x4870fc
push 0x800
call fcn.0048bae7
add esp, 4
mov ecx, esi
push dword [ebp - 0x48]
mov edi, eax
call fcn.00488b90
test eax, eax
je 0x4870ef
mov ecx, eax
call fcn.00488bd0
mov ebx, eax
test ebx, ebx
je 0x4870ef
lea ebx, [ebx]
push 0x4cbc08
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00486c90
add esp, 0xc
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
jbe 0x4870b7
push 0x800
push 0
push edi
call fcn.0048d890
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
jb 0x486e41
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x486e44
xor edi, edi
jmp 0x486e8d
lea esi, [ebp - 0x28]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [0x4b4290]
lea ecx, [eax + 1]
mov dword [ebp - 0x6c], eax
cmp ecx, 0x400
jg 0x486e8d
lea ecx, [eax*2 + 2]
push ecx
push 0
push edi
call fcn.0048d890
add esp, 0xc
push dword [ebp - 0x6c]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [0x4b4290]
push edi
lea ecx, [ebp - 0x54]
call fcn.00401930
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x54]
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046f3d0
cmp dword [eax], esi
mov edx, dword [ebp - 0x54]
sete byte [ebp - 0x41]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x486ed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x41], 0
push edi
je 0x486ffa
lea ecx, [ebp - 0x50]
call fcn.00401930
movzx eax, byte [0x4f94cc]
mov ecx, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 3
call fcn.00486af0
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x486f2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.active
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00486c90
lea eax, [ebp - 0x40]
push 0x4b5930
push eax
mov byte [ebp - 4], 4
call fcn.00486ab0
add esp, 0x14
test al, al
jne 0x486f67
lea eax, [ebp - 0x40]
push 0x4b592e
push eax
call fcn.00486a70
add esp, 8
test al, al
je 0x486fe0
push edi
lea ecx, [ebp - 0x68]
call fcn.00401930
movzx eax, byte [0x4f94cc]
mov ecx, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 5
call fcn.00486af0
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x486fb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x486fe0
push edi
lea ecx, [ebp - 0x60]
call fcn.00401930
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004871d0
lea ecx, [ebp - 0x60]
call fcn.00401c10
cmp dword [ebp - 0x2c], 0x10
jb 0x4870b7
push dword [ebp - 0x40]
call fcn.0048bbcf
add esp, 4
jmp 0x4870b7
lea ecx, [ebp - 0x5c]
call fcn.00401930
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0046f3d0
cmp dword [eax], esi
mov edx, dword [ebp - 0x5c]
setne byte [ebp - 0x41]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x487041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x41], 0
je 0x4870b7
push str.active
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00486c90
lea eax, [ebp - 0x40]
push 0x4b5930
push eax
mov byte [ebp - 4], 8
call fcn.00486ab0
add esp, 0x14
test al, al
jne 0x487084
lea eax, [ebp - 0x40]
push 0x4b592e
push eax
call fcn.00486a70
add esp, 8
test al, al
je 0x4870af
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x4870af
push edi
lea ecx, [ebp - 0x48]
call fcn.00401930
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004871d0
lea ecx, [ebp - 0x48]
call fcn.00401c10
lea ecx, [ebp - 0x40]
call fcn.00401c40
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0
jb 0x4870cc
push dword [ebp - 0x28]
call fcn.0048bbcf
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00488f00
mov ebx, eax
test ebx, ebx
jne 0x486e00
test edi, edi
je 0x4870fc
push edi
call fcn.0048bca1
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.004884c0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xdc], vtable.TiXmlDocument.0
cmp eax, 0x4f9610
je 0x48712e
push eax
call fcn.0048bca1
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.00488070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048caf4
mov esp, ebp
pop ebp
ret