Function at 0x40f450
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a52b6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4d32ac]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov esi, ecx
push esi
mov dword [esp + 0x3c], eax
call dword [0x4a7350]
test eax, eax
je 0x40fdc7
lea edi, [esp + 0x28]
call fcn.0042b270
mov dword [esp + 0x134], 0
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x40f4ea
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40f76c
cmp ecx, eax
jg 0x40f76c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40f4ea
push 0x5c
call fcn.00404820
lea ebx, [esp + 0x24]
call fcn.0042af80
mov byte [esp + 0x134], 1
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x40f52c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40f76c
cmp ecx, eax
jg 0x40f76c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40f52c
push 0x5c
mov edi, ebx
call fcn.00404820
lea ecx, [esp + 0x4c]
call fcn.0047ae70
push 0x4ba808
push esi
mov byte [esp + 0x13c], 2
call fcn.0047fbac
mov esi, eax
add esp, 8
test esi, esi
je 0x40fd44
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 0x40fd44
lea ecx, [esp + 0x4c]
call fcn.0047a270
mov esi, eax
test esi, esi
je 0x40fd3b
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x134], 3
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov ecx, esi
mov byte [esp + 0x134], 4
call fcn.0047a270
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x40fceb
mov ebx, dword [0x4a72d0]
mov ebp, 0xf
push 0x2c
call fcn.0047f14d
add esp, 4
test eax, eax
je 0x40fcd6
mov esi, eax
call fcn.00407ef0
test eax, eax
mov dword [esp + 0x18], eax
je 0x40fcd6
xor esi, esi
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
mov dword [esp + 0x104], ebp
mov dword [esp + 0x100], esi
mov byte [esp + 0xf0], 0
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], esi
mov byte [esp + 0xd4], 0
push str.tips
mov ecx, edi
mov byte [esp + 0x138], 8
call fcn.0047ab60
cmp eax, esi
je 0x40f69a
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40f681
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0xbc]
call fcn.00403eb0
push str.type
mov ecx, edi
call fcn.0047ab60
test eax, eax
je 0x40f6c9
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40f6b0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0xf4]
call fcn.00403eb0
push 0x4ba854
mov ecx, edi
call fcn.0047ab60
test eax, eax
je 0x40f6f9
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40f6e0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0xa0]
call fcn.00403eb0
push str.qqencode
mov ecx, edi
call fcn.0047ab60
test eax, eax
je 0x40f729
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40f710
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0xd8]
call fcn.00403eb0
cmp dword [esp + 0xc8], 0
jbe 0x40fbe8
cmp dword [esp + 0x100], 0
jbe 0x40fbe8
cmp dword [esp + 0xac], 0
jbe 0x40fbe8
cmp dword [esp + 0xcc], 0x10
jb 0x40f776
mov esi, dword [esp + 0xb8]
test esi, esi
jne 0x40f77d
xor ebp, ebp
jmp 0x40f7cb
push 0x80070057
call fcn.00404ef0
lea esi, [esp + 0xb8]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e2d5
mov ebp, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push ebp
call fcn.00485090
add esp, 0xc
push edi
push ebp
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, dword [esp + 0x18]
add edi, 0xc
mov edx, ebp
call fcn.00404c90
test ebp, ebp
je 0x40f7e6
push ebp
call fcn.0047fac6
add esp, 4
cmp dword [esp + 0x104], 0x10
jb 0x40f7ff
mov esi, dword [esp + 0xf0]
test esi, esi
jne 0x40f806
xor ebp, ebp
jmp 0x40f854
lea esi, [esp + 0xf0]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e2d5
mov ebp, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push ebp
call fcn.00485090
add esp, 0xc
push edi
push ebp
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, dword [esp + 0x18]
add edi, 0x10
mov edx, ebp
call fcn.00404c90
test ebp, ebp
je 0x40f86f
push ebp
call fcn.0047fac6
add esp, 4
cmp dword [esp + 0xb0], 0x10
jb 0x40f888
mov ebp, dword [esp + 0x9c]
test ebp, ebp
jne 0x40f88f
xor esi, esi
jmp 0x40f8dd
lea ebp, [esp + 0x9c]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e2d5
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.00485090
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov ebx, dword [esp + 0x18]
lea ebp, [ebx + 8]
mov edx, esi
mov edi, ebp
call fcn.00404c90
test esi, esi
je 0x40f8fa
push esi
call fcn.0047fac6
add esp, 4
cmp dword [esp + 0xe4], 0
jne 0x40f911
lea esi, [ebx + 0x14]
call fcn.00404cd0
jmp 0x40f9a2
cmp dword [esp + 0xe8], 0x10
jb 0x40f92a
mov ebx, dword [esp + 0xd4]
test ebx, ebx
jne 0x40f931
xor esi, esi
jmp 0x40f987
lea ebx, [esp + 0xd4]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [0x4a72d0]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e2d5
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.00485090
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [0x4a72d0]
mov edi, dword [esp + 0x18]
add edi, 0x14
mov edx, esi
call fcn.00404c90
test esi, esi
je 0x40f9a2
push esi
call fcn.0047fac6
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
xor edi, edi
push str.IsSysDef
mov dword [esp + 0x34], edi
call fcn.0047ab80
mov dx, word [esp + 0x2c]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push ebp
mov word [esi], dx
push eax
mov ebx, str._quickview.png
mov dword [esp + 0x34], edi
call fcn.004038a0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0x134], 9
call fcn.00403b10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 8
call fcn.00404eb0
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ebx, 0x4aa6a8
call fcn.004038a0
lea ecx, [esi + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
mov ebx, eax
mov byte [esp + 0x144], 0xa
call fcn.00405430
add esp, 0x10
lea edi, [esp + 0x30]
mov byte [esp + 0x134], 0xb
call fcn.00403b10
lea ecx, [esp + 0x48]
call fcn.00404eb0
lea ecx, [esp + 0x40]
mov byte [esp + 0x134], 8
call fcn.00404eb0
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x40fbd5
mov eax, dword [esp + 0x20]
push eax
call fcn.0042dd00
test eax, eax
je 0x40fbd5
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x84]
call fcn.0042dd00
test eax, eax
je 0x40fbd5
mov edi, dword [esp + 0x18]
add edi, 4
mov esi, edi
mov dword [esp + 0x44], edi
call fcn.00404cd0
mov ecx, dword [esp + 0x1c]
call fcn.0047a270
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x40fbc3
jmp 0x40fac0
push str.word
mov ecx, ebx
call fcn.0047ab60
push eax
lea ecx, [esp + 0x10c]
call fcn.004039e0
mov byte [esp + 0x134], 0xc
cmp dword [esp + 0x11c], 0
jbe 0x40fb9a
cmp dword [esp + 0x120], 0x10
jb 0x40fb08
mov ebp, dword [esp + 0x10c]
test ebp, ebp
jne 0x40fb0f
xor esi, esi
jmp 0x40fb6b
lea ebp, [esp + 0x10c]
mov ebx, dword [0x4a72d0]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047e2d5
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.00485090
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x40fb7c
mov edx, esi
call fcn.00404c90
jmp 0x40fb8d
mov edx, 0x4ba878
call fcn.0040df60
mov edx, esi
call fcn.0040df60
test esi, esi
je 0x40fb9a
push esi
call fcn.0047fac6
add esp, 4
lea ecx, [esp + 0x108]
mov byte [esp + 0x134], 8
call fcn.00403a20
mov ecx, ebx
call fcn.0047a2e0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], eax
jne 0x40fac0
mov esi, dword [esp + 0x38]
add esi, 0x3c
lea ebx, [esp + 0x18]
call fcn.00403a50
jmp 0x40fbfa
mov ebp, dword [ebp]
push 0x4aa6d0
push ebp
call fcn.0046a950
add esp, 8
jmp 0x40fbfa
mov esi, dword [esp + 0x18]
call fcn.00407f60
push esi
call fcn.0047eacc
add esp, 4
mov ebx, 0x10
xor esi, esi
cmp dword [esp + 0xe8], ebx
jb 0x40fc1a
mov edx, dword [esp + 0xd4]
push edx
call fcn.0047eacc
add esp, 4
cmp dword [esp + 0xb0], ebx
mov edi, 0xf
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], esi
mov byte [esp + 0xd4], 0
jb 0x40fc4e
mov eax, dword [esp + 0x9c]
push eax
call fcn.0047eacc
add esp, 4
cmp dword [esp + 0x104], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
jb 0x40fc7d
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0047eacc
add esp, 4
mov byte [esp + 0x134], 4
cmp dword [esp + 0xcc], ebx
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], esi
mov byte [esp + 0xf0], 0
jb 0x40fcb4
mov edx, dword [esp + 0xb8]
push edx
call fcn.0047eacc
add esp, 4
mov ebx, dword [0x4a72d0]
mov dword [esp + 0xcc], edi
mov ebp, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
mov ecx, edi
call fcn.0047a2e0
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], eax
jne 0x40f5e5
mov byte [esp + 0x134], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x134], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
call fcn.0047a140
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x80]
cmp eax, 0x4dbc60
mov dword [esp + 0x4c], vtable.TiXmlDocument.0
je 0x40fd6b
push eax
call fcn.0047fac6
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.0047a9a0
mov byte [esp + 0x134], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0047f0e0
add esp, 0x124
ret 4