Function at 0x46ae00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a38af
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4d32ac]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
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 [0x4a7350]
test eax, eax
je 0x46b286
lea ecx, [esp + 0x4c]
call fcn.0047ae70
push 0x4ba808
push esi
mov dword [esp + 0x134], 0
call fcn.0047fbac
mov esi, eax
add esp, 8
test esi, esi
je 0x46b24e
push 1
push esi
lea ecx, [esp + 0x54]
call fcn.0047af00
push esi
mov bl, al
call fcn.0047fc31
add esp, 4
test bl, bl
je 0x46b24e
lea ecx, [esp + 0x4c]
call fcn.0047a270
mov esi, eax
test esi, esi
je 0x46b245
push 0x800
call fcn.0047e2d5
add esp, 4
push edi
mov ecx, esi
mov ebp, eax
call fcn.0047a2a0
test eax, eax
je 0x46b238
mov ecx, eax
call fcn.0047a270
test eax, eax
mov dword [esp + 0x14], eax
je 0x46b238
mov ecx, dword [esp + 0x14]
mov eax, 0x4ba854
lea esi, [esp + 0xc8]
call fcn.004699e0
mov byte [esp + 0x12c], 1
cmp dword [esp + 0xdc], 0
jbe 0x46b1e3
push 0x800
push 0
push ebp
call fcn.00485090
add esp, 0xc
cmp dword [esp + 0xe0], 0x10
jb 0x46af4f
mov ebx, dword [esp + 0xcc]
test ebx, ebx
jne 0x46af56
xor ebp, ebp
jmp 0x46af96
lea ebx, [esp + 0xcc]
mov edi, dword [0x4a72d0]
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 0x46af96
lea ecx, [esi + esi + 2]
push ecx
push 0
push ebp
call fcn.00485090
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.00404920
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.0046b7e0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x46afc7
cmp eax, dword [esp + 0x18]
je 0x46afcc
call fcn.0047ebfb
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 0x46aff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46b105
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.00404920
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x134], 2
call fcn.0046b6d0
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 0x46b04c
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.004699e0
mov ecx, 0x4be488
mov edi, esi
mov byte [esp + 0x12c], 3
call fcn.0046c180
test al, al
je 0x46b087
mov ecx, 0x4befea
call fcn.0046c180
test al, al
je 0x46b0f9
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00404920
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x134], 4
call fcn.0046b6d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 3
call fcn.00404eb0
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x46b0f9
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.00404920
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x134], 5
call fcn.0046b6d0
lea ecx, [esp + 0x24]
call fcn.00404eb0
lea ecx, [esp + 0x100]
jmp 0x46b1de
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00404920
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.0046b7e0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x46b136
cmp eax, dword [esp + 0x1c]
je 0x46b13b
call fcn.0047ebfb
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 0x46b161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46b1e3
mov ecx, dword [esp + 0x14]
mov eax, str.active
lea esi, [esp + 0xe4]
call fcn.004699e0
mov ecx, 0x4be488
mov edi, esi
mov byte [esp + 0x12c], 6
call fcn.0046c180
test al, al
je 0x46b1a0
mov ecx, 0x4befea
call fcn.0046c180
test al, al
je 0x46b1d7
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x46b1d7
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.00404920
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x134], 7
call fcn.0046b6d0
lea ecx, [esp + 0x20]
call fcn.00404eb0
lea ecx, [esp + 0xe4]
call fcn.00403a20
mov byte [esp + 0x12c], 0
cmp dword [esp + 0xe0], 0x10
jb 0x46b205
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0047eacc
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.0047a2e0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x46aefb
test ebp, ebp
je 0x46b245
push ebp
call fcn.0047fac6
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.0047a140
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x4dbc60
mov dword [esp + 0x4c], vtable.TiXmlDocument.0
je 0x46b278
push eax
call fcn.0047fac6
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.0047a9a0
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.0047f0e0
add esp, 0x11c
ret